Skip to content

Commit 55d0252

Browse files
committed
Fix bug where multiple scenario tables broke the column formatting.
1 parent 6ac160c commit 55d0252

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/cucumber/formatters/pretty_formatter.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def padding_spaces(tree_item)
177177
def next_column_index
178178
@current_column ||= -1
179179
@current_column += 1
180-
@current_column = 0 if @current_column == @table_column_widths.size
180+
@current_column = 0 if @current_column >= @table_column_widths.size
181181
@current_column
182182
end
183183

0 commit comments

Comments
 (0)