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

cleanup: rubocop: fix Layout/SpaceAfterComma in lib/redmine/export/pdf/wiki_pdf_helper.rb

git-svn-id: http://svn.redmine.org/redmine/trunk@19309 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2019-11-25 18:58:26 +00:00
parent 2c2283bc3a
commit 67c331f5ca

View File

@ -28,12 +28,12 @@ module Redmine
pdf.alias_nb_pages
pdf.footer_date = format_date(User.current.today)
pdf.add_page
pdf.SetFontStyle('B',11)
pdf.RDMMultiCell(190,5, project.name)
pdf.SetFontStyle('B', 11)
pdf.RDMMultiCell(190, 5, project.name)
pdf.ln
# Set resize image scale
pdf.set_image_scale(1.6)
pdf.SetFontStyle('',9)
pdf.SetFontStyle('', 9)
write_page_hierarchy(pdf, pages.group_by(&:parent_id))
pdf.output
end
@ -45,7 +45,7 @@ module Redmine
pdf.alias_nb_pages
pdf.footer_date = format_date(User.current.today)
pdf.add_page
pdf.SetFontStyle('B',11)
pdf.SetFontStyle('B', 11)
pdf.
RDMMultiCell(
190, 5,
@ -54,7 +54,7 @@ module Redmine
pdf.ln
# Set resize image scale
pdf.set_image_scale(1.6)
pdf.SetFontStyle('',9)
pdf.SetFontStyle('', 9)
write_wiki_page(pdf, page)
pdf.output
end
@ -81,18 +81,18 @@ module Redmine
:headings => false,
:inline_attachments => false
)
pdf.RDMwriteFormattedCell(190,5,'','', text, page.attachments, 0)
pdf.RDMwriteFormattedCell(190, 5, '', '', text, page.attachments, 0)
if page.attachments.any?
pdf.ln(5)
pdf.SetFontStyle('B',9)
pdf.RDMCell(190,5, l(:label_attachment_plural), "B")
pdf.SetFontStyle('B', 9)
pdf.RDMCell(190, 5, l(:label_attachment_plural), "B")
pdf.ln
for attachment in page.attachments
pdf.SetFontStyle('',8)
pdf.RDMCell(80,5, attachment.filename)
pdf.RDMCell(20,5, number_to_human_size(attachment.filesize),0,0,"R")
pdf.RDMCell(25,5, format_date(attachment.created_on),0,0,"R")
pdf.RDMCell(65,5, attachment.author.name,0,0,"R")
pdf.SetFontStyle('', 8)
pdf.RDMCell(80, 5, attachment.filename)
pdf.RDMCell(20, 5, number_to_human_size(attachment.filesize), 0, 0, "R")
pdf.RDMCell(25, 5, format_date(attachment.created_on), 0, 0, "R")
pdf.RDMCell(65, 5, attachment.author.name, 0, 0, "R")
pdf.ln
end
end