Writes each entry on its own line, closing quotes aligned
All 7 scenarios hold
The formatter lays out a table written as an array of string literals as a block. The opening brace ends its line. Every entry gets a line of its own. The closing brace and parenthesis end the block.
The formatter pads an entry with trailing spaces inside the quotes. The closing quote of every entry then sits in the same column. That is how the array form aligns, where a text block aligns its pipes.
The formatter writes the entries at the configured indent. The Indentation feature says what an indent does in general. An indent takes the form style:size.
expected outcome
broken scenario
| Scenario | Source lines | Configured indent | Formatted lines? |
|---|---|---|---|
| Entries on one line |
| space:4 |
|
| Entries already on lines |
| space:4 |
|
| A single entry |
| space:4 |
|
| Wide characters |
| space:4 |
|
| An empty entry |
| space:4 |
|
| Already laid out |
| space:4 |
|
| No indent configured |
| space:0 |
|