Tags:
create new tag
view all tags

Question

TWiki renders text by inserting <P /> for each occurrence of a sequence of blank lines. The normal way of rendering paragraphs is: <P>paragraph text</P>

Although the shortcut is convenient, it leads to unexpected results on two counts:

  • White space has meaning and is rendered with whatever the current style is for the P tag in the css
  • Paragraphs are not rendered according to the style of the P tag, but instead take the style of the container they exist in.

I realise that this approach has a long history/legacy. Is this something that is likely to change?

Environment

TWiki version: TWikiRelease04x00x02
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  
Categories: Platform

-- BramVanOosterhout - 24 Apr 2006

Answer

ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.

I think it would be very difficult to change. TWiki markup is an inherently unstructured language, and when extracting structure to build HTML you have to make difficult tactical decisions about how to use tags. <P /> allows you to avoid making hard decisions w.r.t paragraph structure. Replacing it would also involve recoding the rendering parser, which is highly likely to break compatibility with old TWiki releases.

-- CrawfordCurrie - 24 Apr 2006

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2006-04-24 - CrawfordCurrie
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.