From: Go MAEDA Date: Sat, 16 Mar 2019 04:43:37 +0000 (+0000) Subject: Fix RDMwriteFormattedCell destroying an argument (#26561). X-Git-Tag: 4.1.0~1040 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=978bdba9eef95285e81093370a3c3d5801ae734d;p=redmine.git Fix RDMwriteFormattedCell destroying an argument (#26561). Patch by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@17975 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/lib/redmine/export/pdf.rb b/lib/redmine/export/pdf.rb index 28627c2a4..f2a159258 100644 --- a/lib/redmine/export/pdf.rb +++ b/lib/redmine/export/pdf.rb @@ -1,5 +1,5 @@ # encoding: utf-8 -# frozen_string_literal: false +# frozen_string_literal: true # # Redmine - project management software @@ -93,7 +93,7 @@ module Redmine ' # Strip {{toc}} tags - txt.gsub!(/

\{\{([<>]?)toc\}\}<\/p>/i, '') + txt = txt.gsub(/

\{\{([<>]?)toc\}\}<\/p>/i, '') writeHTMLCell(w, h, x, y, css_tag + txt, border, ln, fill) end