Return to Snippet

Revision: 37714
at December 15, 2010 19:37 by allieus


Initial Code
--- ./vendor/plugins/rfpdf/lib/rfpdf/korean.rb-orig 2010-12-15 17:23:44.098565541 +0900
+++ ./vendor/plugins/rfpdf/lib/rfpdf/korean.rb  2010-12-15 17:28:54.530815275 +0900
@@ -158,7 +158,7 @@
        c=s[i]
        #Check if ASCII or MB
        ascii=(c<128)
-       if(c=="\n")
+       if(c.chr=="\n")
            #Explicit line break
            Cell(w,h,s[j,i-j],b,2,align,fill)
            i+=1
@@ -183,7 +183,7 @@
            #Automatic line break
            if(sep==-1 or i==j)
                if(i==j)
-                   i+=ascii ? 1 : 2
+                   i+=ascii ? 1 : 3
           end
                Cell(w,h,s[j,i-j],b,2,align,fill)
            else
@@ -198,7 +198,7 @@
                b=b2
         end
        else
-           i+=ascii ? 1 : 2
+           i+=ascii ? 1 : 3
       end
    end
    #Last chunk

Initial URL

                                

Initial Description

                                

Initial Title
PDF Korean Patch for redmine

Initial Tags

                                

Initial Language
Diff