diff options
-rw-r--r-- | lib/redmine/export/pdf/wiki_pdf_helper.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/redmine/export/pdf/wiki_pdf_helper.rb b/lib/redmine/export/pdf/wiki_pdf_helper.rb index 91473765d..d4c4a6868 100644 --- a/lib/redmine/export/pdf/wiki_pdf_helper.rb +++ b/lib/redmine/export/pdf/wiki_pdf_helper.rb @@ -59,10 +59,8 @@ module Redmine def write_page_hierarchy(pdf, pages, node=nil, level=0) if pages[node] pages[node].each do |page| - if @new_page + unless level == 0 && page == pages[node].first pdf.add_page - else - @new_page = true end pdf.bookmark page.title, level write_wiki_page(pdf, page) |