• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

%WEBLIST{"[[$name.%HOMETOPIC%][$name]]" separator=" %SEP% "}%

substitutes to

Bugs  |  LitterTray  |  Main  |  Sandbox  |  TWiki  |  TestCases


<a href="/%7Edevelop/cgi-bin/view/Bugs/WebHome" class="twikiLink">Bugs</a> &lt;span class=<a href="/%7Edevelop/cgi-bin/view/Main/WebHome" class="twikiLink">Main</a> &lt;span class=<a href="/%7Edevelop/cgi-bin/view/Releases/WebHome" class="twikiLink">Releases</a> &lt;span class=<a href="/%7Edevelop/cgi-bin/view/Sandbox/WebHome" class="twikiLink">Sandbox</a> &lt;span class=<a href="/%7Edevelop/cgi-bin/view/Sandbox/Smells/WebHome" class="twikiLink">Sandbox.Smells</a> &lt;span class=<a href="/%7Edevelop/cgi-bin/view/Sandbox/Stupid/WebHome" class="twikiLink">Sandbox.Stupid</a> &lt;span class=<a href="/%7Edevelop/cgi-bin/view/Sandbox/Sven/WebHome" class="twikiLink">Sandbox.Sven</a> &lt;span class=<a href="/%7Edevelop/cgi-bin/view/Sandbox/Terceiro/WebHome" class="twikiLink">Sandbox.Terceiro</a> &lt;span class=<a href="/%7Edevelop/cgi-bin/view/TWiki/WebHome" class="twikiLink">TWiki</a> &lt;span class=<a href="/%7Edevelop/cgi-bin/view/TestCases/WebHome" class="twikiLink">TestCases</a> &lt;span class=<a href="/%7Edevelop/cgi-bin/view/Tinderbox/WebHome" class="twikiLink">Tinderbox</a>

It's the

&lt;span class=
that looks a bit off.

Seen in TWikiPreferences#TWiki_Platform_Settings (as shows, rendering is OK here in Bugs.web (?)).


Somebody redefined SEP in pattern skin to include a span, which has parameters delimited by double quotes. This gets substituted into the weblist expression and because of the fact that the parser has to be really stupid to be Cairo compatible, it breaks. Thus:

SEP = 
%WEBLIST{"[[$name.%HOMETOPIC%][$name]]" separator=" %SEP% "}%
expands to
%WEBLIST{"[[$name.%HOMETOPIC%][$name]]" separator=" <span class="twikiSpan">&nbsp;|&nbsp;</span> "}%
which gets parsed as:
{_DEFAULT} => "[[$name.%HOMETOPIC%][$name]]"
{separator} => " <span class="
... and the rest gets thrown away
No, I can't fix the parser. It has to be that stupid to deal with existing TWikiApplications.

I replaced the SEP with a vertical bar in that expression. SVN 8176


Summary %WEBLIST renders crippled spanclasses
ReportedBy SteffenPoulsen

SVN Range Fri, 06 Jan 2006 build 8154
AppliesTo Engine

Priority Urgent
CurrentState Closed

Checkins 8176
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r4 - 2006-01-08 - CrawfordCurrie
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback