Opened 18 years ago
Last modified 9 years ago
#4439 new defect
PageOutline macro produces empty <li> elements
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | low | Milestone: | topic-wikiengine |
Component: | wiki system | Version: | 0.10.3 |
Severity: | minor | Keywords: | pageoutline |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
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 =
Attachments (0)
Change History (4)
comment:1 by , 18 years ago
Component: | general → wiki |
---|---|
Keywords: | pageoutline added |
Milestone: | → 0.12 |
Owner: | changed from | to
comment:2 by , 14 years ago
Milestone: | next-major-0.1X → 0.13 |
---|
comment:3 by , 14 years ago
Milestone: | 0.13 → 0.14-wikiengine |
---|
comment:4 by , 9 years ago
Owner: | removed |
---|
I should port some of the stuff I did for the TH:TocMacro.