summaryrefslogtreecommitdiffstats
path: root/lib/redmine/export
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2019-03-16 04:43:37 +0000
committerGo MAEDA <maeda@farend.jp>2019-03-16 04:43:37 +0000
commit978bdba9eef95285e81093370a3c3d5801ae734d (patch)
tree3c47a8567bfe70eaf2ae25ee650403b69586bd97 /lib/redmine/export
parent1035b577a993761c854ae274b650c7c537d54c5b (diff)
downloadredmine-978bdba9eef95285e81093370a3c3d5801ae734d.tar.gz
redmine-978bdba9eef95285e81093370a3c3d5801ae734d.zip
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
Diffstat (limited to 'lib/redmine/export')
-rw-r--r--lib/redmine/export/pdf.rb4
1 files changed, 2 insertions, 2 deletions
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
</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