Project

General

Profile

Defect #14412 » 14412_remove_collapse_tags_in_pdf_export_r12037.diff

David Majorel, 2013-07-21 12:30

View differences:

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, '')
(3-3/3)