summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-10-26 16:35:27 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-10-26 16:35:27 +0000
commitd9e6359a839d7097283c237e4982e8ef5df2849e (patch)
tree596d450fe193b89032a2ba7a4421aee167d006c6 /app
parent8610b191ae1a40ff58e90a1225d79c893a49b0d6 (diff)
downloadredmine-d9e6359a839d7097283c237e4982e8ef5df2849e.tar.gz
redmine-d9e6359a839d7097283c237e4982e8ef5df2849e.zip
Fixed: some quotation marks are rendered as strange characters in pdf.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@871 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/helpers/ifpdf_helper.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/helpers/ifpdf_helper.rb b/app/helpers/ifpdf_helper.rb
index 5e7fb2898..585dbeeca 100644
--- a/app/helpers/ifpdf_helper.rb
+++ b/app/helpers/ifpdf_helper.rb
@@ -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('\\')