r2 - 07 Feb 2002 - 05:52:30 - PeterThoenyYou are here: TWiki >  Codev Web > SingleWikiWordInTableNotRendered
Tags:
, create new tag

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 | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r2 < r1 | More topic actions
 
Powered by TWiki
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