summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-09-11 00:08:32 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-09-11 00:08:32 +0000
commit8cfec7ddf5c0a44be5850dd31d3cea517a730616 (patch)
tree99949c316284dd96d2442d5f89d161e3f76b8a1f /lib
parentaf177c3a596629920600871e9bb9463ddfb1d32f (diff)
downloadredmine-8cfec7ddf5c0a44be5850dd31d3cea517a730616.tar.gz
redmine-8cfec7ddf5c0a44be5850dd31d3cea517a730616.zip
gantt: code layout cleanup pdf_subject method of lib/redmine/helpers/gantt.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10350 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine/helpers/gantt.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/redmine/helpers/gantt.rb b/lib/redmine/helpers/gantt.rb
index fa60a72eb..0e389f8fd 100644
--- a/lib/redmine/helpers/gantt.rb
+++ b/lib/redmine/helpers/gantt.rb
@@ -679,8 +679,10 @@ module Redmine
params[:pdf].SetY(params[:top])
params[:pdf].SetX(15)
char_limit = PDF::MaxCharactorsForSubject - params[:indent]
- params[:pdf].RDMCell(params[:subject_width]-15, 5, (" " * params[:indent]) + subject.to_s.sub(/^(.{#{char_limit}}[^\s]*\s).*$/, '\1 (...)'), "LR")
-
+ params[:pdf].RDMCell(params[:subject_width] - 15, 5,
+ (" " * params[:indent]) +
+ subject.to_s.sub(/^(.{#{char_limit}}[^\s]*\s).*$/, '\1 (...)'),
+ "LR")
params[:pdf].SetY(params[:top])
params[:pdf].SetX(params[:subject_width])
params[:pdf].RDMCell(params[:g_width], 5, "", "LR")