summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-25 18:58:26 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-25 18:58:26 +0000
commit67c331f5ca49178d49727cfd92520453594feced (patch)
treea50f34cc1db18b99e6b96e98e3df0406c0db3eca /lib
parent2c2283bc3a682e69dd4e1cbbb90c5ce6a1e36489 (diff)
downloadredmine-67c331f5ca49178d49727cfd92520453594feced.tar.gz
redmine-67c331f5ca49178d49727cfd92520453594feced.zip
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
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine/export/pdf/wiki_pdf_helper.rb26
1 files 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