summaryrefslogtreecommitdiffstats
path: root/lib/redmine/export
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-05-09 10:52:08 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-05-09 10:52:08 +0000
commit3b508094235a738a47c35429c62d774b520f518b (patch)
treed2a9f8d9e77a60a71b19ae83dff7574d1631abd0 /lib/redmine/export
parent5742f78bd1b771af8d50878dc2d93129747fa245 (diff)
downloadredmine-3b508094235a738a47c35429c62d774b520f518b.tar.gz
redmine-3b508094235a738a47c35429c62d774b520f518b.zip
PDF: code clean up lib/redmine/export/pdf.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5719 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/export')
-rw-r--r--lib/redmine/export/pdf.rb11
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/redmine/export/pdf.rb b/lib/redmine/export/pdf.rb
index 3dbbb63ec..2787f1a6f 100644
--- a/lib/redmine/export/pdf.rb
+++ b/lib/redmine/export/pdf.rb
@@ -38,7 +38,7 @@ module Redmine
@ic = Iconv.new(l(:general_pdf_encoding), 'UTF-8')
end
pdf_encoding = l(:general_pdf_encoding).upcase
- super('P', 'mm', 'A4', (pdf_encoding == 'UTF-8'), pdf_encoding )
+ super('P', 'mm', 'A4', (pdf_encoding == 'UTF-8'), pdf_encoding)
set_language_if_valid lang
case pdf_encoding
when 'UTF-8'
@@ -326,7 +326,8 @@ module Redmine
end
# Renders MultiCells and returns the maximum height used
- def issues_to_pdf_write_cells(pdf, col_values, col_widths, row_height, head=false)
+ def issues_to_pdf_write_cells(pdf, col_values, col_widths,
+ row_height, head=false)
base_y = pdf.GetY
max_height = row_height
col_values.each_with_index do |column, i|
@@ -343,7 +344,8 @@ module Redmine
end
# Draw lines to close the row (MultiCell border drawing in not uniform)
- def issues_to_pdf_draw_borders(pdf, top_x, top_y, lower_y, id_width, col_widths)
+ def issues_to_pdf_draw_borders(pdf, top_x, top_y, lower_y,
+ id_width, col_widths)
col_x = top_x + id_width
pdf.Line(col_x, top_y, col_x, lower_y) # id right border
col_widths.each do |width|
@@ -366,7 +368,8 @@ module Redmine
pdf.footer_date = format_date(Date.today)
pdf.AddPage
pdf.SetFontStyle('B',11)
- pdf.RDMMultiCell(190,5, "#{issue.project} - #{issue.tracker} # #{issue.id}: #{issue.subject}")
+ pdf.RDMMultiCell(190,5,
+ "#{issue.project} - #{issue.tracker} # #{issue.id}: #{issue.subject}")
pdf.Ln
y0 = pdf.GetY