# HG changeset patch # User Toshi MARUYAMA # Parent af7bd72f26270fde4a28555ea841dc717a7b22dc (#13051) diff --git a/lib/redmine/export/pdf.rb b/lib/redmine/export/pdf.rb --- a/lib/redmine/export/pdf.rb +++ b/lib/redmine/export/pdf.rb @@ -35,6 +35,8 @@ module Redmine class ITCPDF < TCPDF include Redmine::I18n + include ApplicationHelper + include ERB::Util attr_accessor :footer_date def initialize(lang, orientation='P') @@ -113,7 +115,7 @@ module Redmine end def formatted_text(text) - html = Redmine::WikiFormatting.to_html(Setting.text_formatting, text) + html = textilizable(text) # Strip {{toc}} tags html.gsub!(/

\{\{([<>]?)toc\}\}<\/p>/i, '') html