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

Topic revision: r5 - 03 Dec 2001 - 04:14:50 - MikeMannix
 
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback SourceForge.net Logo