##// END OF EJS Templates
Fixed: improper 0x5c char handling in PDF output (Go Maeda)....
Jean-Philippe Lang -
r802:bb724e75c0a9
parent child
Show More
@@ -53,10 +53,13 module IfpdfHelper
53 53 def Cell(w,h=0,txt='',border=0,ln=0,align='',fill=0,link='')
54 54 @ic ||= Iconv.new(l(:general_pdf_encoding), 'UTF-8')
55 55 txt = begin
56 @ic.iconv(txt)
56 # 0x5c char handling
57 txtar = txt.split('\\')
58 txtar << '' if txt[-1] == ?\\
59 txtar.collect {|x| @ic.iconv(x)}.join('\\').gsub(/\\/, "\\\\\\\\")
57 60 rescue
58 61 txt
59 end
62 end || ''
60 63 super w,h,txt,border,ln,align,fill,link
61 64 end
62 65
General Comments 0
You need to be logged in to leave comments. Login now