From 67c331f5ca49178d49727cfd92520453594feced Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Mon, 25 Nov 2019 18:58:26 +0000 Subject: [PATCH] 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 --- lib/redmine/export/pdf/wiki_pdf_helper.rb | 26 +++++++++++------------ 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/lib/redmine/export/pdf/wiki_pdf_helper.rb b/lib/redmine/export/pdf/wiki_pdf_helper.rb index 7ef7865c6..f1a121587 100644 --- a/lib/redmine/export/pdf/wiki_pdf_helper.rb +++ b/lib/redmine/export/pdf/wiki_pdf_helper.rb @@ -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 -- 2.39.5