Cells are padded to their column width and joined with pipes
All 9 scenarios hold
Column widths come from the Column width rules and are measured in display columns. Every cell except the last is padded to its column width plus one space before the pipe; every cell after the first gets one space after the pipe. The last column is never padded, so no line carries trailing spaces. The header row is laid out by the same rule as data rows.
expected outcome
broken scenario
| Scenario | Cells | Column widths | Row? |
|---|---|---|---|
| Cells padded to their column width |
|
| Alice | 30 |
| Last column never padded |
|
| Bob | 7 |
| Three columns joined with pipes |
|
| a | bb | c |
| Empty first cell filled with spaces |
|
| | 30 |
| Empty middle cell |
|
| a | | c |
| Empty last cell leaves pipe bare |
|
| short | |
| Single column gets no padding |
|
| Alice |
| CJK padded by display width |
|
| 中文 | x |
| Emoji padded by display width |
|
| 😀 | ok |