Project

General

Profile

Feature #13051 » pdf-macro-trunk-r12194.diff

Toshi MARUYAMA, 2013-10-02 08:28

View differences:

lib/redmine/export/pdf.rb
class ITCPDF < TCPDF
include Redmine::I18n
include ApplicationHelper
include ERB::Util
attr_accessor :footer_date
def initialize(lang, orientation='P')
......
end
def formatted_text(text)
html = Redmine::WikiFormatting.to_html(Setting.text_formatting, text)
html = textilizable(text)
# Strip {{toc}} tags
html.gsub!(/<p>\{\{([<>]?)toc\}\}<\/p>/i, '')
html
(2-2/3)