Defect #11697

Problem with Wiki export to PDF / HTML / TXT — 'include' does not includes

Added by Leonid Eletskikh almost 6 years ago. Updated about 1 month ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Wiki
Target version:-
Resolution: Affected version:2.0.3

Description

If you try to print Wiki page, using export e.g. to PDF, you can find a conflict with {{include(___)}} Macros.

For example:
Page consists with a several include Macros, and it is full of text.

{{include(page1)}}

---

{{include(page2)}}

---

{{include(page3)}}

---

{{include(page4)}}

The final PDF version will include only plain text, that you can see in Edition mode (find above), but not final version with included Macros with text and images.


Related issues

Related to Redmine - Feature #13051: Support any macro in (pdf) export for wiki's and issues Closed

History

#1 Updated by David Lukas Müller almost 3 years ago

I can reproduce this issue with the following environment:

Environment:
  Redmine version                2.4.2.stable
  Ruby version                   1.9.3-p484 (2013-11-22) [x86_64-linux]
  Rails version                  3.2.16
  Environment                    production
  Database adapter               MySQL

#2 Updated by Jérôme BATAILLE about 1 month ago

Hi,

I have the same issue with the 2.6 last version, but I have another instance with 3.4.4 version where this is fixed.
This was fixed with the Version 3.0.0 (#13051).
So this ticket can be closed.

#3 Updated by Go MAEDA about 1 month ago

Jérôme BATAILLE wrote:

This was fixed with the Version 3.0.0 (#13051).
So this ticket can be closed.

Thank you for pointing it out. But we cannot close this issue because PDF and html export render macros but text export does not.

IMHO, text export should export source code of the page, so macros should not be rendered.

Also available in: Atom PDF