From b8f7d1419ee46ca48413760d63e3ee7628e5374c Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Thu, 30 Jan 2020 08:34:14 +0000 Subject: [PATCH] Right-aligned TOC tag is displayed in exported PDF if the text formatting setting is Markdown (#32477). Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@19480 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/export/pdf.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/redmine/export/pdf.rb b/lib/redmine/export/pdf.rb index 85beb8bdb..7dc622c66 100644 --- a/lib/redmine/export/pdf.rb +++ b/lib/redmine/export/pdf.rb @@ -93,7 +93,7 @@ module Redmine ' # Strip {{toc}} tags - txt = txt.gsub(/

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

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