]> source.dussan.org Git - redmine.git/commitdiff
Right-aligned TOC tag is displayed in exported PDF if the text formatting setting...
authorGo MAEDA <maeda@farend.jp>
Thu, 30 Jan 2020 08:34:14 +0000 (08:34 +0000)
committerGo MAEDA <maeda@farend.jp>
Thu, 30 Jan 2020 08:34:14 +0000 (08:34 +0000)
Patch by Yuichi HARADA.

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

lib/redmine/export/pdf.rb

index 85beb8bdb8f0c3ccb58ce3a6340444a13cb26226..7dc622c66fdcc01d0b893f42c8631607fbdd40e6 100644 (file)
@@ -93,7 +93,7 @@ module Redmine
           </style>'
 
           # Strip {{toc}} tags
-          txt = txt.gsub(/<p>\{\{([<>]?)toc\}\}<\/p>/i, '')
+          txt = txt.gsub(/<p>\{\{((<|&lt;)|(>|&gt;))?toc\}\}<\/p>/i, '')
           writeHTMLCell(w, h, x, y, css_tag + txt, border, ln, fill)
         end