diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-11-29 12:47:14 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-11-29 12:47:14 +0000 |
commit | 11ab4d621355b4a4a3ddfa4fe2e15d544f52de8b (patch) | |
tree | e43c073b4d969389340d700d630310c0572b43e1 /lib | |
parent | 8e6829ec559c21f66fb1bcc17956120d19583901 (diff) | |
download | redmine-11ab4d621355b4a4a3ddfa4fe2e15d544f52de8b.tar.gz redmine-11ab4d621355b4a4a3ddfa4fe2e15d544f52de8b.zip |
fix source indent of lib/redmine/export/pdf/issues_pdf_helper.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20506 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r-- | lib/redmine/export/pdf/issues_pdf_helper.rb | 38 |
1 files changed, 21 insertions, 17 deletions
diff --git a/lib/redmine/export/pdf/issues_pdf_helper.rb b/lib/redmine/export/pdf/issues_pdf_helper.rb index 1cbaa726e..d45422b7d 100644 --- a/lib/redmine/export/pdf/issues_pdf_helper.rb +++ b/lib/redmine/export/pdf/issues_pdf_helper.rb @@ -198,8 +198,9 @@ module Redmine unless changeset.comments.blank? pdf.SetFontStyle('',8) pdf.RDMwriteHTMLCell( - 190,5,'','', - changeset.comments.to_s, issue.attachments, "") + 190, 5, '', '', + changeset.comments.to_s, issue.attachments, "" + ) end pdf.ln end @@ -337,21 +338,24 @@ module Redmine pdf.set_y(base_y + max_height) query.block_columns.each do |column| - if column.is_a?(QueryCustomFieldColumn) - cv = issue.visible_custom_field_values.detect {|v| v.custom_field_id == column.custom_field.id} - text = show_value(cv, false) - else - text = issue.send(column.name) - end - next if text.blank? - - pdf.set_x(10) - pdf.set_auto_page_break(true, bottom_margin) - pdf.SetFontStyle('B',9) - pdf.RDMCell(0, 5, column.caption, "LRT", 1) - pdf.SetFontStyle('',9) - pdf.RDMwriteHTMLCell(0, 5, '', '', text, [], "LRB") - pdf.set_auto_page_break(false) + if column.is_a?(QueryCustomFieldColumn) + cv = + issue.visible_custom_field_values.detect do |v| + v.custom_field_id == column.custom_field.id + end + text = show_value(cv, false) + else + text = issue.send(column.name) + end + next if text.blank? + + pdf.set_x(10) + pdf.set_auto_page_break(true, bottom_margin) + pdf.SetFontStyle('B',9) + pdf.RDMCell(0, 5, column.caption, "LRT", 1) + pdf.SetFontStyle('',9) + pdf.RDMwriteHTMLCell(0, 5, '', '', text, [], "LRB") + pdf.set_auto_page_break(false) end end |