Tags:
create new tag
view all tags

Bug: A line with an explict < and a html tag may get rendered incorrectly

If there is an explict < (less-than sign) on a line, followed by some non-empty character, and a html tag later on the same line, this line is rendered incorrectly. The html tag may be inserted implicitely by a table.

Test case

| Rainfall | <1mm |
gets rendered as
Rainfall <1mm

Environment

TWiki version: TWikiRelease01Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Solaris 5.9
Web server: Apache 1.x
Perl version: 5.8.x
Client OS: various
Web Browser: various

-- JChristophFuchs - 21 Jan 2005

Follow up

Fix record

It seems to me, that the regular expression in Render.pm for finding a html tag does not work correctly. Attached is a patch with an improved regular expression, which will find most html tags correctly (but not all, especially if there are escaped quotes \" in an argument of a tag)

-- JChristophFuchs - 21 Jan 2005

Note that this problem is endemic, and is only properly fixed in the DEVELOP branch.

-- CrawfordCurrie - 21 Jan 2005

Topic attachments
I Attachment History Action Size Date Who Comment
Unknown file formatpatch Render.pm.patch r1 manage 0.8 K 2005-01-21 - 16:14 UnknownUser Patch for Render.pm
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2005-01-21 - 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.