Defect #14412 » 14412_remove_collapse_tags_in_pdf_export_r12037.diff
lib/redmine/export/pdf.rb (working copy) | ||
---|---|---|
113 | 113 |
end |
114 | 114 | |
115 | 115 |
def formatted_text(text) |
116 |
# Remove {{collapse()}} tags, but keep content |
|
117 |
text.gsub!(/\{\{collapse\(.*?\)(.*?)\}\}/m, '\1') |
|
116 | 118 |
html = Redmine::WikiFormatting.to_html(Setting.text_formatting, text) |
117 | 119 |
# Strip {{toc}} tags |
118 | 120 |
html.gsub!(/<p>\{\{([<>]?)toc\}\}<\/p>/i, '') |
- « Previous
- 1
- 2
- 3
- Next »