Feature #13051 » pdf-macro-trunk-r12194.diff
| 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
|
||