(row: string[])
| 393 | // See free-code/src/components/MarkdownTable.tsx L44-L62 for approach. |
| 394 | if (!needsWrap) { |
| 395 | const buildRowString = (row: string[]): string => |
| 396 | row |
| 397 | .map((cell, ci) => { |
| 398 | const text = stripInlineMarkup(cell) |
| 399 | const pad = ' '.repeat(Math.max(0, columnWidths[ci]! - stringWidth(text))) |
| 400 | const gap = ci < numCols - 1 ? ' ' : '' |
| 401 | |
| 402 | return text + pad + gap |
| 403 | }) |
| 404 | .join('') |
| 405 | |
| 406 | return ( |
| 407 | <Box flexDirection="column" key={k} paddingLeft={TABLE_PADDING_LEFT}> |
no test coverage detected