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
This commit is contained in:
Go MAEDA
2020-01-30 08:34:14 +00:00
parent 47a71c8011
commit b8f7d1419e

View 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