GitLab steht wegen Wartungsarbeiten am Montag, den 10. Mai, zwischen 17:00 und 19:00 Uhr nicht zur Verfügung.

Commit 4a2ed296 authored by tmaruyama's avatar tmaruyama

code layout clean up lib/redmine/export/pdf.rb

git-svn-id: https://svn.redmine.org/redmine/trunk@7816 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 597b0abf
......@@ -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}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment