1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-22 08:21:14 +00:00

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
This commit is contained in:
Toshi MARUYAMA 2020-11-29 12:47:14 +00:00
parent 8e6829ec55
commit 11ab4d6213

View File

@ -198,8 +198,9 @@ module Redmine
unless changeset.comments.blank? unless changeset.comments.blank?
pdf.SetFontStyle('',8) pdf.SetFontStyle('',8)
pdf.RDMwriteHTMLCell( pdf.RDMwriteHTMLCell(
190,5,'','', 190, 5, '', '',
changeset.comments.to_s, issue.attachments, "") changeset.comments.to_s, issue.attachments, ""
)
end end
pdf.ln pdf.ln
end end
@ -337,21 +338,24 @@ module Redmine
pdf.set_y(base_y + max_height) pdf.set_y(base_y + max_height)
query.block_columns.each do |column| query.block_columns.each do |column|
if column.is_a?(QueryCustomFieldColumn) if column.is_a?(QueryCustomFieldColumn)
cv = issue.visible_custom_field_values.detect {|v| v.custom_field_id == column.custom_field.id} cv =
text = show_value(cv, false) issue.visible_custom_field_values.detect do |v|
else v.custom_field_id == column.custom_field.id
text = issue.send(column.name) end
end text = show_value(cv, false)
next if text.blank? else
text = issue.send(column.name)
end
next if text.blank?
pdf.set_x(10) pdf.set_x(10)
pdf.set_auto_page_break(true, bottom_margin) pdf.set_auto_page_break(true, bottom_margin)
pdf.SetFontStyle('B',9) pdf.SetFontStyle('B',9)
pdf.RDMCell(0, 5, column.caption, "LRT", 1) pdf.RDMCell(0, 5, column.caption, "LRT", 1)
pdf.SetFontStyle('',9) pdf.SetFontStyle('',9)
pdf.RDMwriteHTMLCell(0, 5, '', '', text, [], "LRB") pdf.RDMwriteHTMLCell(0, 5, '', '', text, [], "LRB")
pdf.set_auto_page_break(false) pdf.set_auto_page_break(false)
end end
end end