diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-01-25 09:23:45 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-01-25 09:23:45 +0000 |
commit | 5541f9ca518d9e78663eab6a64c588145e65034f (patch) | |
tree | 058fe4c98d8fc72167fcdb779b4b51134a59d86b /lib | |
parent | 10dab4045e53f5a495515463b687557b40718ac9 (diff) | |
download | redmine-5541f9ca518d9e78663eab6a64c588145e65034f.tar.gz redmine-5541f9ca518d9e78663eab6a64c588145e65034f.zip |
Render issue description and journal notes with #textilizable (#13051).
git-svn-id: http://svn.redmine.org/redmine/trunk@13946 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r-- | lib/redmine/export/pdf/issues_pdf_helper.rb | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/lib/redmine/export/pdf/issues_pdf_helper.rb b/lib/redmine/export/pdf/issues_pdf_helper.rb index 897f41392..55980e882 100644 --- a/lib/redmine/export/pdf/issues_pdf_helper.rb +++ b/lib/redmine/export/pdf/issues_pdf_helper.rb @@ -121,8 +121,13 @@ module Redmine # Set resize image scale pdf.set_image_scale(1.6) - pdf.RDMwriteHTMLCell(35+155, 5, '', '', - issue.description.to_s, issue.attachments, "LRB") + text = textilizable(issue, :description, + :only_path => false, + :edit_section_links => false, + :headings => false, + :inline_attachments => false + ) + pdf.RDMwriteFormattedCell(35+155, 5, '', '', text, issue.attachments, "LRB") unless issue.leaf? truncate_length = (!is_cjk? ? 90 : 65) @@ -206,8 +211,13 @@ module Redmine if journal.notes? pdf.ln unless journal.details.empty? pdf.SetFontStyle('',8) - pdf.RDMwriteHTMLCell(190,5,'','', - journal.notes.to_s, issue.attachments, "") + text = textilizable(journal, :notes, + :only_path => false, + :edit_section_links => false, + :headings => false, + :inline_attachments => false + ) + pdf.RDMwriteFormattedCell(190,5,'','', text, issue.attachments, "") end pdf.ln end |