Tags:
create new tag
, view all tags

Question

I created a plugin (KnowledgeBasePlugin) allowing for simple linking of knowledge base documents. The document's data is stored in form data, so the topics themselves don't contain any text. The skin I created takes the form field's values to display the documents. First, I tried using %META:{"formfield" name="<field name>"}%, as I saw somewhere in the documentation, but this didn't work. I then implemented the extraction of the fields in my plugin. This all works.

Problem

The text contained within the fields is standard TWiki markup. This is rendered properly, except for bullet and numbered lists. They aren't rendered:

   * bullet 1
   * bullet 2

becomes

* bullet 1 * bullet 2

on the generated HTML page instead of

  • bullet 1
  • bullet 2

What strikes me is that everything else (headings, bold text, links, separators) works, just not the lists. The source of the generated HTML page looks correct, meaning no hidden tags that would prevent TWiki from rendering the bullets:

<p />
   * bullet 1
   * bullet 2
<p />

Environment

TWiki version: TWikiRelease01Feb2003
TWiki plugins: TopicVarsPlugin, KnowledgeBasePlugin, ConditionalPlugin, DefaultPlugin, InterwikiPlugin
Server OS: Debian GNU/Linux 3.0 (woody), kernel 2.3.19-ac4
Web server: Apache 1.3.26
Perl version: 5.6.1
Client OS: Windows 2000, SP4
Web Browser: Mozilla 1.4

-- ThomasJachmann - 26 Sep 2003

Answer

Simple answer: Use tab + star + space, e.g. generate a tab instead of three spaces for bullets. For historical reasons, TWiki stores files with tabs instead of leading spaces.

-- PeterThoeny - 27 Sep 2003

Very simple indeed... smile I'll change the code of the plugin doing the output to convert three spaces to tabs then. Thank you very much.

-- ThomasJachmann - 27 Sep 2003

Topic revision: r3 - 2003-09-27 - ThomasJachmann
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.