Ticket #9035 (new enhancement)

Opened 2 years ago

Last modified 5 months ago

[patch] allow removing output of other macros from included pages

Reported by: benoitg Assigned to: rjollos
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

includemacro_remove_macros.patch (2.2 kB) - added by benoitg on 07/27/11 02:24:36.
Implements a remove_macros named parameter to remove the output of a colon (:) separated list of macros in the included page
includemacro_remove_macros_v2.patch (1.8 kB) - added by benoitg on 02/25/12 05:53:17.
Re-generated patch so it applies cleanly on top of [11266] (some of the changes were similar).

Change History

07/27/11 02:24:36 changed by benoitg

  • attachment includemacro_remove_macros.patch added.

Implements a remove_macros named parameter to remove the output of a colon (:) separated list of macros in the included page

02/25/12 05:53:17 changed by benoitg

  • attachment includemacro_remove_macros_v2.patch added.

Re-generated patch so it applies cleanly on top of [11266] (some of the changes were similar).

12/13/12 22:00:12 changed by hasienda

  • keywords set to macro processor renderer nesting sanitizing.
  • owner changed from coderanger to rjollos.

#1728 is related.


Add/Change #9035 ([patch] allow removing output of other macros from included pages)




Change Properties
Action