Modify ↓
#9986 closed enhancement (fixed)
PageOutline macro should have an option to specify whether the outline is numbered
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Milestone: | 1.0 |
Component: | wiki system | Version: | 0.12-stable |
Severity: | normal | Keywords: | patch |
Cc: | martin@… | Branch: | |
Release Notes: |
wiki: Allowed removing the numbering in the |
||
API Changes: | |||
Internal Changes: |
Description
The PageOutline macro numbers the items in the outline by default, as seen in the example that follows. It seems desirable to have this behavior controlled by a macro argument.
This would be particularly useful when the macro is used with the th:NumberedHeadlinesPlugin, since numbered headlines already have the sections numbered.
[[PageOutline(2-5,Contents,inline)]] = Section 1 = == Section 1.1 == === Section 1.1.1 === ==== Section 1.1.1.1 ==== ==== Section 1.1.1.2 ==== === Section 1.1.2 === == Section 1.2 ==
Contents
Section 1
Section 1.1
Section 1.1.1
Section 1.1.1.1
Section 1.1.1.2
Section 1.1.2
Section 1.2
Attachments (1)
Change History (6)
comment:1 by , 14 years ago
Cc: | added |
---|
comment:2 by , 14 years ago
comment:3 by , 14 years ago
Keywords: | patch added |
---|---|
Milestone: | → 0.13 |
Owner: | set to |
Thanks for the patch.
comment:4 by , 14 years ago
Release Notes: | modified (diff) |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Patch applied (with cosmetic changes) in [10550].
comment:5 by , 14 years ago
Owner: | changed from | to
---|
Note:
See TracTickets
for help on using tickets.
I've taken a cut at a patch, and hoping to get some feedback since I have no doubts it will need some work.
There are no tests for the
PageOutline
macro intest/macros.py
so I didn't add a test for the case of this new argument. If it is worthwhile to add some tests, I could take a try at that task as well.