Defect #9842

{{toc}} is not replaced by table of content when exporting wiki page to pdf

Added by Florent Fievez over 6 years ago. Updated about 5 years ago.

Status:ClosedStart date:
Priority:LowDue date:
Assignee:-% Done:

0%

Category:PDF export
Target version:2.2.2
Resolution:Fixed Affected version:2.2.1

Description

While exporting a wiki page to pdf, the {{toc}} keyword stay untranslated, it should be replaced by a table of content as in html rendering of the page.
See attached pdf file for example.

CentOS_64bits_30_release_notes.pdf (312 KB) Florent Fievez, 2011-12-19 11:51

Proyecto-uinfo.pdf (305 KB) Lu Pa, 2012-02-07 14:56

issue-ja.pdf (8.07 KB) Toshi MARUYAMA, 2013-01-20 18:40

wiki-ja.pdf (5.95 KB) Toshi MARUYAMA, 2013-01-20 18:40


Related issues

Related to Redmine - Defect #13559: {{toc}} remains when exporting wiki page to text New
Duplicated by Redmine - Defect #11728: Macros should be rendered or stripped before render to PDF Closed

Associated revisions

Revision 11227
Added by Jean-Philippe Lang about 5 years ago

Strip {{toc}} tags in pdf exports (#9842).

Revision 11235
Added by Jean-Philippe Lang about 5 years ago

Merged r11227 from trunk (#9842).

History

#1 Updated by Gokay Gok over 6 years ago

+1

#2 Updated by Cassiano Monteiro over 6 years ago

+1

#3 Updated by franz baumann over 6 years ago

+1

#4 Updated by Oli Kessler over 6 years ago

+1

#5 Updated by Lu Pa about 6 years ago

+1

Macro pages (when you include a subpage) are not rendering correctly when you export to PDF and works well when you export to html.

#6 Updated by Lu Pa about 6 years ago

#7 Updated by Lu Pa about 6 years ago

See attached file. Do you think I must open a new issue for this?

#8 Updated by Alexander Alexeev about 6 years ago

+1

#9 Updated by Pierluigi Soana about 6 years ago

+1
Macro in general are not rendered by the export job

#10 Updated by Martin Jinoch about 6 years ago

same problem in 1.3.1

#11 Updated by Etienne Massip about 6 years ago

  • Status changed from New to Confirmed
  • Target version set to Candidate for next minor release

#13 Updated by Stephen Ostrow almost 6 years ago

This is present in Redmine 1.4.3.stable as well.

#14 Updated by Cassiano Monteiro almost 6 years ago

Up!

Since defect #10688 was fixed, if this one and #10689 were fixed too, this would be very nice!

#15 Updated by Toshi MARUYAMA over 5 years ago

  • Category changed from Wiki to PDF export

#16 Updated by Carlos Peñas over 5 years ago

It really happens with any macro (exporting to pdf) not only with {{toc}}

#17 Updated by Maurizio Totti over 5 years ago

+1

#18 Updated by David Fouche over 5 years ago

+1
Macro in general

#19 Updated by Michael Oostdyk over 5 years ago

+1
Please

#20 Updated by Kevin Gillen over 5 years ago

+1

#21 Updated by Daniel Felix over 5 years ago

  • Target version changed from Candidate for next minor release to 2.2.2
  • Affected version (unused) changed from 1.3.0 to 2.2.1
  • Affected version changed from 1.3.0 to 2.2.1

I can confirm this issue in 2.2.1 and current trunk (r11196).

This should be fixed. Anyway... just display the TOC or remove it, cause it doesn't make so much sense on the pdf-export, as Adobe has it's own TOC available.

#22 Updated by Jean-Philippe Lang about 5 years ago

  • Status changed from Confirmed to Closed
  • Resolution set to Fixed

{{toc}} is now removed in PDF output.

#23 Updated by Toshi MARUYAMA about 5 years ago

  • Status changed from Closed to Reopened

It seems that r11227 is broken in CJK.

#24 Updated by Toshi MARUYAMA about 5 years ago

Toshi MARUYAMA wrote:

It seems that r11227 is broken in CJK.

Sorry, r11227 works fine in CJK.

#25 Updated by Karel Pičman about 5 years ago

The same problem seems to me remains in TXT export.

Anyway I'd expect to implement TOC conversion to PDF instead of stripping of the tag.

#26 Updated by Toshi MARUYAMA about 5 years ago

Karel Pičman wrote:

The same problem seems to me remains in TXT export.

Anyway I'd expect to implement TOC conversion to PDF instead of stripping of the tag.

I have created new issue #13559.

Also available in: Atom PDF