toc on page with milestones results in mess

Issue #1662 duplicate
created an issue

I have a page like this:

{{{ <<toc>>

== Milestones ==

blah blah

=== 0 ===

blah blah

<<milestone 0>>

=== 1 ===

blah blah

<<milestone 1>> }}}

It goes all the way to 4 plus another two. Riveting stuff. Anyway the TOC macro completely messes up. Sections where the milestone list is empty show up ok in the toc, but if there are any matching tickets then they get expanded into the toc too in a mangled form making an awful mess.

An example page is in a private repository.

Comments (2)

  1. Eirik Stavem
    • changed status to open

    Jesper, to reproduce:

    • Create a milestone with the name "0"
    • Add an issue for this milestone
    • Create a wiki-page with this content:
    == 0 : First milestone ==
    <<milestone 0>>
    == 1 : Second milestone ==
  2. Log in to comment