(cells: string[], colCount: number)
| 158 | } |
| 159 | |
| 160 | function normalizeRow(cells: string[], colCount: number): string[] { |
| 161 | const out = cells.slice(0, colCount) |
| 162 | while (out.length < colCount) out.push('') |
| 163 | return out |
| 164 | } |
| 165 | |
| 166 | // --------------------------------------------------------------------------- |
| 167 | // Serialization (padded, Obsidian/prettier-ish) |