Skip to content

Commit

Permalink
Fixes #28503 - Allow column max width more than 80
Browse files Browse the repository at this point in the history
(cherry picked from commit 34bd2a4)
  • Loading branch information
ofedoren authored and shiramax committed Dec 31, 2019
1 parent 3e48734 commit be17642
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lib/hammer_cli/output/generators/table.rb
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,9 @@ def calculate_column_width(column, data)
end

def max_width_for(column)
if column.params[:max_width]
[column.params[:max_width], MAX_COLUMN_WIDTH].min
else
MAX_COLUMN_WIDTH
end
return MAX_COLUMN_WIDTH unless column.params[:max_width]

column.params[:max_width]
end
end
end
Expand Down

0 comments on commit be17642

Please sign in to comment.