From af177c3a596629920600871e9bb9463ddfb1d32f Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Tue, 11 Sep 2012 00:08:16 +0000 Subject: [PATCH] gantt: code layout cleanup to_pdf method of lib/redmine/helpers/gantt.rb git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10349 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/helpers/gantt.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/redmine/helpers/gantt.rb b/lib/redmine/helpers/gantt.rb index eff5ffed3..fa60a72eb 100644 --- a/lib/redmine/helpers/gantt.rb +++ b/lib/redmine/helpers/gantt.rb @@ -486,11 +486,11 @@ module Redmine pdf.alias_nb_pages pdf.footer_date = format_date(Date.today) pdf.AddPage("L") - pdf.SetFontStyle('B',12) + pdf.SetFontStyle('B', 12) pdf.SetX(15) pdf.RDMCell(PDF::LeftPaneWidth, 20, project.to_s) pdf.Ln - pdf.SetFontStyle('B',9) + pdf.SetFontStyle('B', 9) subject_width = PDF::LeftPaneWidth header_height = 5 headers_height = header_height @@ -498,10 +498,10 @@ module Redmine show_days = false if self.months < 7 show_weeks = true - headers_height = 2*header_height + headers_height = 2 * header_height if self.months < 3 show_days = true - headers_height = 3*header_height + headers_height = 3 * header_height end end g_width = PDF.right_pane_width @@ -551,7 +551,7 @@ module Redmine left = subject_width height = header_height wday = self.date_from.cwday - pdf.SetFontStyle('B',7) + pdf.SetFontStyle('B', 7) (self.date_to - self.date_from + 1).to_i.times do width = zoom pdf.SetY(y_start + 2 * header_height) @@ -564,7 +564,7 @@ module Redmine end pdf.SetY(y_start) pdf.SetX(15) - pdf.RDMCell(subject_width+g_width-15, headers_height, "", 1) + pdf.RDMCell(subject_width + g_width - 15, headers_height, "", 1) # Tasks top = headers_height + y_start options = {