Tags:
create new tag
, view all tags

Embedded HTML can't be split across lines

TWiki.pm has this code in getRenderedVersion:

s/\<(\S.*?)\>/$TranslationToken$1$TranslationToken/go;
s/</&lt\;/go;
s/>/&gt\;/go;

This doesn't match across lines, so embedded HTML doesn't work if it crosses lines like this:

<a
href="foo">

TextFormattingRules doesn't explain this. I'm not sure how easy it is to fix (just turn on multiline matching for just this part?) but at least the docs can be correct.

-- GregLindahl - 29 Nov 2001

This is feature. People sometimes enter just a angle bracket, i.e. a < b and TWiki will automatically render that as a &lt; b.

-- PeterThoeny - 30 Nov 2001

Fine. Then why doesn't the documentation say that you can't split HTML across lines?

Personally, it's a pain because I can't paste existing pages as easily into TWiki, but that would be more OK if it were documented.

-- GregLindahl - 30 Nov 2001

Docs will be updated.

-- PeterThoeny - 01 Dec 2001

The above has been noted in the docs under TextFormattingRules.

-- MikeMannix - 02 Dec 2001

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2001-12-03 - MikeMannix
 
  • 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-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.