Defect #9842

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

Added by Florent Fievez almost 6 years ago. Updated over 4 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 almost 5 years ago

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

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

Merged r11227 from trunk (#9842).

History

#1 Updated by Gokay Gok almost 6 years ago

+1

#2 Updated by Cassiano Monteiro almost 6 years ago

+1

#3 Updated by franz baumann almost 6 years ago

+1

#4 Updated by Oli Kessler almost 6 years ago

+1

#5 Updated by Lu Pa almost 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 almost 6 years ago

#7 Updated by Lu Pa almost 6 years ago

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

#8 Updated by Alexander Alexeev almost 6 years ago

+1

#9 Updated by Pierluigi Soana over 5 years ago

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

#10 Updated by Martin Jinoch over 5 years ago

same problem in 1.3.1

#11 Updated by Etienne Massip over 5 years ago

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

#12 Updated by Anatoliy Gavrilov over 5 years ago

+1

#13 Updated by Stephen Ostrow over 5 years ago

This is present in Redmine 1.4.3.stable as well.

#14 Updated by Cassiano Monteiro over 5 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 about 5 years ago

  • Category changed from Wiki to PDF export

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

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

#17 Updated by Maurizio Totti about 5 years ago

+1

#18 Updated by David Fouche almost 5 years ago

+1
Macro in general

#19 Updated by Michael Oostdyk almost 5 years ago

+1
Please

#20 Updated by Kevin Gillen almost 5 years ago

+1

#21 Updated by Daniel Felix almost 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 almost 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 almost 5 years ago

  • Status changed from Closed to Reopened

It seems that r11227 is broken in CJK.

#24 Updated by Toshi MARUYAMA almost 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 over 4 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 over 4 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