Defect #12964
closedMacros should be rendered to PDF
0%
Description
I use many macros where it would be really useful (for me) to have the macros output in the pdf.
When a pdf is rendered macros are still shown as raw text in curly brackets.
With #9842 the "toc"-Macro is removed from pdf output.
For "toc" the solution was fine (for me). But #9842 did not fix the problem in general.
I think macros output should be always rendered in pdfs.
Perhaps a additional switch on head or tail of a wiki-page or issue like {{macro_pdf_on/off}} would be nice for those who (dis)like getting the macro-output in the pdf-file. Or something like that...
Perhaps there is a way to let the macro know that a pdf job called it so that the output can be different for pdfs than html etc.
In my opinion a solution like removing macros raw curly brackets from the output would not be a good solution.
Related issues
Updated by Paulo Neves about 11 years ago
You are right on with your reasoning. I have worked out a small patch that naively tries to render the macros in the PDFs. It is naive because of the reasons you stated, some macros are just not applicable to a medium like a PDF file.
There is already a feature request (#13051) where this problem is being discussed. I will post my patch and my arguments there.
Updated by Toshi MARUYAMA about 11 years ago
- Status changed from New to Closed
- Resolution set to Duplicate
Updated by Toshi MARUYAMA about 11 years ago
- Is duplicate of Feature #13051: Support any macro in (pdf) export for wiki's and issues added