]> source.dussan.org Git - redmine.git/commitdiff
Fixed: some quotation marks are rendered as strange characters in pdf.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 26 Oct 2007 16:35:27 +0000 (16:35 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 26 Oct 2007 16:35:27 +0000 (16:35 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@871 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/ifpdf_helper.rb

index 5e7fb289898f56df930b66b9be6f7b4ea363d4a1..585dbeeca73ac0e435dceefc150a7578b6830828 100644 (file)
@@ -52,6 +52,8 @@ module IfpdfHelper
       
     def Cell(w,h=0,txt='',border=0,ln=0,align='',fill=0,link='')
       @ic ||= Iconv.new(l(:general_pdf_encoding), 'UTF-8')
+      # these quotation marks are not correctly rendered in the pdf
+      txt = txt.gsub(/[“”]/, '"') if txt
       txt = begin
         # 0x5c char handling
         txtar = txt.split('\\')