diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-09-11 00:08:16 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-09-11 00:08:16 +0000 |
commit | af177c3a596629920600871e9bb9463ddfb1d32f (patch) | |
tree | 3be07724e38765fb16df91f65e4a4c42539bd2f4 /lib | |
parent | 25aeb4c3d366c2cfacf498915973fa85c3633c42 (diff) | |
download | redmine-af177c3a596629920600871e9bb9463ddfb1d32f.tar.gz redmine-af177c3a596629920600871e9bb9463ddfb1d32f.zip |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/redmine/helpers/gantt.rb | 12 |
1 files 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 = { |