Unparseable input is returned unchanged
All 12 scenarios hold
Formatting must never break a build: input that cannot be parsed as a well-formed table is returned exactly as it was, whatever indent is configured. Escaped quotes are not part of the table grammar, so tables containing them are left alone. The well-formed row shows the contrast: parseable input is reformatted.
expected outcome
broken scenario
| Scenario | Table lines | Configured indent | Unchanged? |
|---|---|---|---|
| Well-formed table |
|
| false |
| Extra column in a data row |
|
| true |
| Missing column in a data row |
|
| true |
| Escaped quotes in a value |
|
| true |
| Empty input | [] |
| true |
| Whitespace-only input |
| true |