> -----Original Message-----
> From: [email protected] On Behalf Of Chris Nelson
> Sent: 07 September 2011 15:42
> To: [email protected]
> Subject: RE: [Trac] table of contents inside ticket description
>
> On 2011-09-07 at 10:40:36, Clemens Feige wrote:
> > Chris Nelson, 07.09.2011 14:10:
> >> On 2011-09-07 at 06:27:20, Clemens Feige wrote:
> >>> Hello.
> >>>
> >>> Is is possible to have a table of contents (TOC) inside a ticket
> >>> description?
> >>>
> >>> I like very much the [[PageOutline]] standard macro, see [1].
> >>> Unfortunately it works only with Wiki pages, not inside a ticket
> text.
> >>>
> >>> Can the [[TOC]] macro, from TracHacks [2] be used inside a ticket
> >>> description text?
> >>
> >> What would it index? Would you put headlines in your comments? Or
> do
> >> are you talking about a really long ticket description?
> >
> > We are indeed having quite long ticket description texts and we use
> > headlines to structure the ticket description.
> > So I would like a TOC of all headlines in the ticket
> description text.
> > (I do not care for text in ticket comments).
>
> That sounds useful though it has never occurred to me to put a TOC
> there. If you work this out, I'd like to hear what you found.
>
I have [[TOC]] enabled in out tracs, so I just tried it and got:
{{{
Error: Macro TOC(None) failed
'int' object has no attribute 'endswith'
}}}
...so the short answer is 'no'.
However, I think this would be better as a separate macro designed to work with
tickets (it could then be configured to ignore the comments sections etc as
required)?
~ mark c
--
You received this message because you are subscribed to the Google Groups "Trac
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/trac-users?hl=en.