Modify ↓
Opened 13 years ago
Last modified 5 years ago
#9035 new enhancement
[patch] allow removing output of other macros from included pages
Reported by: | Benoit Grégoire | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | IncludeMacro |
Severity: | normal | Keywords: | macro processor renderer nesting sanitizing |
Cc: | Trac Release: | 0.11 |
Description
This was inspired (and works well with) OdtExportPlugin
This patch implements a named remove_macros parameter. By default the output of the macros PageOutline, TracGuideToc, !TOC, TranslatedPages is removed, just like in OdtExportPlugin.
So:
[[Include(PageName, remove_macros=)]]
produces the same behaviour as before the patch.
[[Include(PageName, remove_macros=PageOutline:TracGuideToc:TOC:TranslatedPages)]]
produces the same behaviour as not passing any remove_macros parameters.
[[Include(PageName, remove_macros=PageOutline:TOC)]]
would only remove the output of the PageOutline and TOC macros, and leave the rest alone.
Attachments (2)
Change History (5)
Changed 13 years ago by
Attachment: | includemacro_remove_macros.patch added |
---|
Changed 13 years ago by
Attachment: | includemacro_remove_macros_v2.patch added |
---|
Re-generated patch so it applies cleanly on top of [11266] (some of the changes were similar).
comment:1 Changed 12 years ago by
Keywords: | macro processor renderer nesting sanitizing added |
---|---|
Owner: | changed from Noah Kantrowitz to Ryan J Ollos |
#1728 is related.
comment:2 Changed 11 years ago by
Status: | new → assigned |
---|
comment:3 Changed 5 years ago by
Owner: | Ryan J Ollos deleted |
---|---|
Status: | assigned → new |
Note: See
TracTickets for help on using
tickets.
Implements a remove_macros named parameter to remove the output of a colon (:) separated list of macros in the included page