Edgewall Software
Modify

Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#9986 closed enhancement (fixed)

PageOutline macro should have an option to specify whether the outline is numbered

Reported by: Ryan J Ollos <ryano@…> Owned by: Ryan J Ollos <ryano@…>
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 [[PageOutline]] macro output in inline style.

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

  1. Section 1.1
    1. Section 1.1.1
      1. Section 1.1.1.1
      2. Section 1.1.1.2
    2. Section 1.1.2
  2. Section 1.2

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)

t9986-r10528-patch1.patch (2.5 KB ) - added by Ryan J Ollos <ryano@…> 13 years ago.
Patch #1

Download all attachments as: .zip

Change History (6)

comment:1 by Martin Scharrer <martin@…>, 13 years ago

Cc: martin@… added

comment:2 by Ryan J Ollos <ryano@…>, 13 years ago

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 in test/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.

by Ryan J Ollos <ryano@…>, 13 years ago

Attachment: t9986-r10528-patch1.patch added

Patch #1

comment:3 by Remy Blank, 13 years ago

Keywords: patch added
Milestone: 0.13
Owner: set to Remy Blank

Thanks for the patch.

comment:4 by Remy Blank, 13 years ago

Release Notes: modified (diff)
Resolution: fixed
Status: newclosed

Patch applied (with cosmetic changes) in [10550].

comment:5 by Remy Blank, 13 years ago

Owner: changed from Remy Blank to Ryan J Ollos <ryano@…>

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos <ryano@…>.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Ryan J Ollos <ryano@…> to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.