Edgewall Software

Ticket #4439 (new defect)

Opened 2 years ago

Last modified 21 months ago

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 =

Attachments

Change History

Changed 21 months ago by cboos

  • keywords pageoutline added
  • owner changed from jonas to cboos
  • component changed from general to wiki
  • milestone set to 0.12

I should port some of the stuff I did for the TH:TocMacro.

Add/Change #4439 (PageOutline macro produces empty <li> elements)

Author



Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will change from cboos. Next status will be 'new'
The owner will change from cboos to anonymous. Next status will be 'assigned'
 
Note: See TracTickets for help on using tickets.