Tags:
create new tag
view all tags

Bug: Single WikiWord in an HTML table isn't rendered consistently

Test case

<table><tr><td>WikiWord</td></tr></table>
becomes:
WikiWord

<table><tr><td> WikiWord </td></tr></table>
becomes
WikiWord

I suggest a change like this one below to add spaces outside the WikiWord. Extra space between tags are stripped by (at least my) the browser. The example here is taken from my own plugin development.

$_[0] =~ s/\>\s*($wikiWordRegexp)\s*\</> $1 </g;

Environment

TWiki version: twiki.org
TWiki plugins:  
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  

-- StefanLindmark - 06 Feb 2002

Fix record

This is actually a feature, not a bug. Your suggestion would introduce a whole avalanche of side effects. For example, rendering a WikiWord twice would produce nested links which is not XHTML conform (text do get rendered twice or more, i.e. with %INCLUDE{}% or %SEARCH{}%); or, escaping a WikiWord with <nop> would no longer work.

-- PeterThoeny - 06 Feb 2002

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2002-02-07 - PeterThoeny
 
  • 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.