From 10dab4045e53f5a495515463b687557b40718ac9 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 25 Jan 2015 09:08:13 +0000 Subject: [PATCH] Removed an instance variable. git-svn-id: http://svn.redmine.org/redmine/trunk@13945 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/export/pdf/wiki_pdf_helper.rb | 4 +--- 1 file changed, 1 insertion(+), 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) -- 2.39.5