]> source.dussan.org Git - redmine.git/commitdiff
code layout clean up lib/redmine/export/pdf.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 16 Nov 2011 03:58:02 +0000 (03:58 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 16 Nov 2011 03:58:02 +0000 (03:58 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7816 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/export/pdf.rb

index a44ba14ebc199f7323b27fc70dcf07f1aa66d3fc..212a9f1edc0ccf25d32e3246205172fe76c41f4d 100644 (file)
@@ -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}