[Mediawiki-l] TOC causing extra </li></ul>

William Tucker wtucker at nqativ.com
Wed Mar 19 16:51:43 UTC 2008


I am having a problem with 1.11.0

It seems that the HTML for the TOC includes an extra "</li></ul>" sequence.

Here is a example (the problem is right before the </td>):
<table id="toc" class="toc" summary="Contents"><tr><td><div id="toctitle"><h2>Contents</h2></div>
<ul>
<li class="toclevel-1"><a href="#How_to_Print_Payroll_Checks"><span class="tocnumber">1</span> <span class="toctext">How to Print Payroll Checks</span></a>
<ul>
<li class="toclevel-2"><a href="#Options"><span class="tocnumber">1.1</span> <span class="toctext">Options</span></a></li>
<li class="toclevel-2"><a href="#Print"><span class="tocnumber">1.2</span> <span class="toctext">Print</span></a></li>
<li class="toclevel-2"><a href="#Mark"><span class="tocnumber">1.3</span> <span class="toctext">Mark</span></a></li>
</ul>
</li>
<li class="toclevel-1"><a href="#See_Also"><span class="tocnumber">2</span> <span class="toctext">See Also</span></a></li>
</ul>
</li>
</ul>
</td></tr></table><script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>

I tried to find the problem code and ended up in Parser around the call to Linker.tocUnindent.

Does anyone know where the problem is and how to fix it? It is causing me no end of grief.

Thanks,
William Tucker
nQativ Solutions

5214 68th Street
Suite 200
LubbockTX79424
wtucker at nqativ.com
http://www.nqativ.com
tel: (806) 687-8500 800-356-6568
fax: (806) 687-8511



This e-mail message (and attachments) may contain confidential nQativ Solutions information. If you are not the intended recipient, you cannot use, distribute or copy the message or attachments. In such a case, please notify the sender by return e-mail immediately and erase all copies of the message and attachments. Opinions, conclusions and other information in this message and attachments that do not relate to official business are neither given nor endorsed by nQativ Solutions.



More information about the MediaWiki-l mailing list