Ticket #4439 (new defect)
PageOutline macro produces empty <li> elements
| Reported by: | Florent Angebault <fangebault@…> | Owned by: | cboos |
|---|---|---|---|
| Priority: | low | Milestone: | 0.13 |
| Component: | wiki system | Version: | 0.10.3 |
| Severity: | minor | Keywords: | pageoutline |
| Cc: |
Description
When a level 3 section is immediately followed by a level 1 section, the macro generates an empty <li> element. It happens for every n+2 level section that is immediately followed by a n level section.
It doesn't shows up in normal circumstances because empty <li> elements are not displayed. But having customized the CSS to show section numbers in the TOC, those additional elements are displayed (at least with firefox or opera, but not IE).
How to reproduce the bug:
Modify the file templates/site_css.cs:
/* Auto-numbering TOC's elements */
.wiki-toc ol {counter-reset: toc;}
.wiki-toc ol li:before {
list-style-type: decimal;
list-style-position: inside;
content: counters(toc, ".") " ";
counter-increment: toc;
}
And the create a wiki page like this:
[[PageOutline()]] = First section = === First subsection === == Second subsection == === Sub-subsection === = Second Section =


