]> source.dussan.org Git - redmine.git/commitdiff
cleanup: rubocop: fix Layout/SpaceAfterComma in lib/redmine/export/pdf/wiki_pdf_helper.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 25 Nov 2019 18:58:26 +0000 (18:58 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 25 Nov 2019 18:58:26 +0000 (18:58 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@19309 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/export/pdf/wiki_pdf_helper.rb

index 7ef7865c64b790173c9fb44ea28e6cfed493c84a..f1a12158773a7410ed619cca30b1b57b15cb6ddf 100644 (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