]> source.dussan.org Git - redmine.git/commitdiff
Render issue description and journal notes with #textilizable (#13051).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 25 Jan 2015 09:23:45 +0000 (09:23 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 25 Jan 2015 09:23:45 +0000 (09:23 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@13946 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/export/pdf/issues_pdf_helper.rb

index 897f413929bad8786859ec414744757b919481a9..55980e8825b399090d562cabe2db4a5c3c0c2296 100644 (file)
@@ -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