Ticket #4140 (new defect)
Merge OutlineFormatter into Formatter
| Reported by: | jpereira@… | Owned by: | cboos |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.13 |
| Component: | wiki system | Version: | 0.10.1 |
| Severity: | normal | Keywords: | parser formatter macro outline |
| Cc: |
Description (last modified by cboos) (diff)
Hi,
Macros like the PageOutline make use of the OutlineFormatter to build a table of contents. But it seems awfully inefficient that you'll have to run through the page twice in order to do just that. How about having the standard Formatter build the outline[] array just like the OutlineFormatter does, so that one could refer to it at anytime during a macro? It'd be a really simple change too, merging both behaviours into one class. Then you'd just call the macros at the end of the wiki pages wherever you wanted an outline to be generated.
I'd be glad to submit this, if you require an extra hand, - Jorge Pereira


