diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-04-03 02:47:06 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-04-03 02:47:06 +0000 |
commit | 90ed0784458a16f57a73e2eb80bdcaa2398b092b (patch) | |
tree | 6f3ac8df3483ed1bb8a8ce3d2d943b6556312ef3 /lib | |
parent | dfe83ffa91f66a5cbfc3caba0318ec47586883ed (diff) | |
download | redmine-90ed0784458a16f57a73e2eb80bdcaa2398b092b.tar.gz redmine-90ed0784458a16f57a73e2eb80bdcaa2398b092b.zip |
PDF: code clean up lib/redmine/export/pdf.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5296 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r-- | lib/redmine/export/pdf.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/redmine/export/pdf.rb b/lib/redmine/export/pdf.rb index ccfd34218..baf553ca1 100644 --- a/lib/redmine/export/pdf.rb +++ b/lib/redmine/export/pdf.rb @@ -132,7 +132,7 @@ module Redmine end || '' super(txt) end - + def textstring(s) # Format a text string if s =~ /^</ # This means the string is hex-dumped. @@ -141,7 +141,7 @@ module Redmine return '('+escape(s)+')' end end - + def fix_text_encoding(txt) @ic ||= Iconv.new(l(:general_pdf_encoding), 'UTF-8') # these quotation marks are not correctly rendered in the pdf @@ -154,17 +154,17 @@ module Redmine rescue txt end || '' - return txt + return txt end - + def RDMCell(w,h=0,txt='',border=0,ln=0,align='',fill=0,link='') Cell(w,h,fix_text_encoding(txt),border,ln,align,fill,link) end - + def RDMMultiCell(w,h=0,txt='',border=0,align='',fill=0) MultiCell(w,h,fix_text_encoding(txt),border,align,fill) end - + def Footer SetFont(@font_for_footer, 'I', 8) SetY(-15) |