Short description

The standard TableOfContents macro does provide the page contents outline using numbered list, where each level starts again with 1. The patch to the 1.7.0 version of the TableOfContents macro provides solution, so that the table of contents instead of looking like:

1. topic 1
    1. subtopic 1
        1. subsubtopic 1
    2. subtopic 2
2. topic 2

looks like:

1. topic 1
    1.1. subtopic 1
        1.1.1 subsubtopic 1
    1.2. subtopic 2
2. topic 2


TableOfContents.py_170.patch - the patch against the MoinMoin v1.7.0 TableOfContents macro
TableOfContents.py - the patched MoinMoin v1.7.0 TableOfContents macro

Discussion

Your patch seems to be indented wrongly, and it needs to be a documented argument to the TOC macro. -- JohannesBerg 2008-07-03 13:57:29

This patch uses tabs which makes the indenting wrong. One tab is two indention levels. tabs.png

Please also use string substitution instead of + and str -- ReimarBauer 2008-07-03 22:22:31


CategoryFeatureRequest

- stell (Stellars Henson) 03-07-2008

MoinMoin: FeatureRequests/HierarchicalTableOfContents (last edited 2011-11-14 13:01:45 by ThomasWaldmann)