From 6a875eb691844b78786d95d45e3c457bc67fc9a2 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Thu, 1 Mar 2007 19:49:04 +0000 Subject: fix for #8973: Export feature(to csv/pdf) doesn't work in Japanese csv and pdf encoding are know defined for each language (general_csv_encoding and general_pdf_encoding keys in lang files) added SJIS font for japanese pdf exports git-svn-id: http://redmine.rubyforge.org/svn/trunk@287 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- vendor/plugins/rfpdf/lib/rfpdf/japanese.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'vendor') diff --git a/vendor/plugins/rfpdf/lib/rfpdf/japanese.rb b/vendor/plugins/rfpdf/lib/rfpdf/japanese.rb index 7340936bb..4e611a6f6 100644 --- a/vendor/plugins/rfpdf/lib/rfpdf/japanese.rb +++ b/vendor/plugins/rfpdf/lib/rfpdf/japanese.rb @@ -146,13 +146,13 @@ module PDF_Japanese b2='LR' else b2='' - if(border.index('L').nil?) + if(border.to_s.index('L')) b2+='L' end - if(border.index('R').nil?) + if(border.to_s.index('R')) b2+='R' end - b=border.index('T').nil? ? b2+'T' : b2 + b=border.to_s.index('T') ? b2+'T' : b2 end end sep=-1 @@ -163,7 +163,7 @@ module PDF_Japanese while(i