techtalk/SpecFlow — Issue #146: Exception in FormatTableString if table row does not end with a pipe
Author: pilor
Created: 2011-11-05 20:16:07+00:00
State: open

The following line throws an IndexOutOfRangeException inside EditorCommands::FormatTableString (line 205) if a user forgets to place an ending pipe on a table row.

widths[i] = Math.Max(widths[i], cellLength);

An example table would be:
| col1 | col2 | col3 |
| a | b | c | d
|

The exception is thrown when the pipe on the new row is inserted.