Skip to content

Commit

Permalink
Fix bug where multiple scenario tables broke the column formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwynne committed Oct 21, 2008
1 parent 9c14c38 commit ecaa811
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cucumber/formatters/pretty_formatter.rb
Expand Up @@ -177,7 +177,7 @@ def padding_spaces(tree_item)
def next_column_index
@current_column ||= -1
@current_column += 1
@current_column = 0 if @current_column == @table_column_widths.size
@current_column = 0 if @current_column >= @table_column_widths.size
@current_column
end

Expand Down

0 comments on commit ecaa811

Please sign in to comment.