summaryrefslogtreecommitdiffstats
path: root/lib/redmine
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-11-16 03:58:02 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-11-16 03:58:02 +0000
commitb58d029294f759e0bf62dd5948ad603df7805981 (patch)
tree8c13f80186a7536882f79106478c0b9e31395a27 /lib/redmine
parent36728d779df86ab8cdac4e95525d89e33a7b6b5a (diff)
downloadredmine-b58d029294f759e0bf62dd5948ad603df7805981.tar.gz
redmine-b58d029294f759e0bf62dd5948ad603df7805981.zip
code layout clean up lib/redmine/export/pdf.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7816 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine')
-rw-r--r--lib/redmine/export/pdf.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/redmine/export/pdf.rb b/lib/redmine/export/pdf.rb
index a44ba14eb..212a9f1ed 100644
--- a/lib/redmine/export/pdf.rb
+++ b/lib/redmine/export/pdf.rb
@@ -154,7 +154,8 @@ module Redmine
col_width = []
unless query.columns.empty?
col_width = query.columns.collect do |c|
- (c.name == :subject || (c.is_a?(QueryCustomFieldColumn) && ['string', 'text'].include?(c.custom_field.field_format)))? 4.0 : 1.0
+ (c.name == :subject || (c.is_a?(QueryCustomFieldColumn) &&
+ ['string', 'text'].include?(c.custom_field.field_format))) ? 4.0 : 1.0
end
ratio = (table_width - col_id_width) / col_width.inject(0) {|s,w| s += w}
col_width = col_width.collect {|w| w * ratio}