diff options
author | Go MAEDA <maeda@farend.jp> | 2020-01-30 08:34:14 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2020-01-30 08:34:14 +0000 |
commit | b8f7d1419ee46ca48413760d63e3ee7628e5374c (patch) | |
tree | 3fb6f2fa44ac13703a00912637c92aea265f417b /lib | |
parent | 47a71c80113eac70ac94dcc8d8eb3c9860e47959 (diff) | |
download | redmine-b8f7d1419ee46ca48413760d63e3ee7628e5374c.tar.gz redmine-b8f7d1419ee46ca48413760d63e3ee7628e5374c.zip |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/redmine/export/pdf.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 </style>' # Strip {{toc}} tags - txt = 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 |