]> source.dussan.org Git - redmine.git/commitdiff
Fix RDMwriteFormattedCell destroying an argument (#26561).
authorGo MAEDA <maeda@farend.jp>
Sat, 16 Mar 2019 04:43:37 +0000 (04:43 +0000)
committerGo MAEDA <maeda@farend.jp>
Sat, 16 Mar 2019 04:43:37 +0000 (04:43 +0000)
Patch by Pavel Rosický.

git-svn-id: http://svn.redmine.org/redmine/trunk@17975 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/export/pdf.rb

index 28627c2a42f6c9736d4e4a5047c31929b68b6c83..f2a1592589efa405667a304fa591b755d6bcfed6 100644 (file)
@@ -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
           </style>'
 
           # Strip {{toc}} tags
-          txt.gsub!(/<p>\{\{([<>]?)toc\}\}<\/p>/i, '')
+          txt = txt.gsub(/<p>\{\{([<>]?)toc\}\}<\/p>/i, '')
           writeHTMLCell(w, h, x, y, css_tag + txt, border, ln, fill)
         end