Patch Proposal: TOCs are rendered into invalid html
Motivation
getting Dakar bugfree
Description
This is a two-chars patch prevents the
twikiToc div and its contained anchors
to be crossed html-wise. Prevoiusly, the closing div was appended to
the last char of the TOC result with the effect that it will be _enclosed _ in the list
that gets rendered later on in
getRenderedVersion()
Adding a
\n to the TOC before surrounding it with a div fixes that.
The problem showed up by trying to draw a red border arround TOCs using
.twikiToc {border:1px solid red}
Firefox is quite good in rendering crossed html tags. Not so konqueror which drawed
a red border arround the complete topic text.
Note: Patch is attached as
https://www.twiki.org/p/pub/Codev/InvalidHtmlInTOC/TWiki_pm.diff. The patch is against Dakar.
--
MichaelDaum - 28 Mar 2005
Discussion:
Fixed.
SVN r.3934
--
ArthurClemens - 28 Mar 2005