PDF Korean Patch for redmine


/ Published in: Diff
Save to your folder(s)



Copy this code and paste it in your HTML
  1. --- ./vendor/plugins/rfpdf/lib/rfpdf/korean.rb-orig 2010-12-15 17:23:44.098565541 +0900
  2. +++ ./vendor/plugins/rfpdf/lib/rfpdf/korean.rb 2010-12-15 17:28:54.530815275 +0900
  3. @@ -158,7 +158,7 @@
  4. c=s[i]
  5. #Check if ASCII or MB
  6. ascii=(c<128)
  7. - if(c=="\n")
  8. + if(c.chr=="\n")
  9. #Explicit line break
  10. Cell(w,h,s[j,i-j],b,2,align,fill)
  11. i+=1
  12. @@ -183,7 +183,7 @@
  13. #Automatic line break
  14. if(sep==-1 or i==j)
  15. if(i==j)
  16. - i+=ascii ? 1 : 2
  17. + i+=ascii ? 1 : 3
  18. end
  19. Cell(w,h,s[j,i-j],b,2,align,fill)
  20. else
  21. @@ -198,7 +198,7 @@
  22. b=b2
  23. end
  24. else
  25. - i+=ascii ? 1 : 2
  26. + i+=ascii ? 1 : 3
  27. end
  28. end
  29. #Last chunk

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.