* Wrap a table cell to fit into a column. * * Delegates to wrapTextWithAnsi() so ANSI codes + long tokens are handled * consistently with the rest of the renderer.
(text: string, maxWidth: number)
| 675 | * consistently with the rest of the renderer. |
| 676 | */ |
| 677 | private wrapCellText(text: string, maxWidth: number): string[] { |
| 678 | return wrapTextWithAnsi(text, Math.max(1, maxWidth)); |
| 679 | } |
| 680 | |
| 681 | /** |
| 682 | * Render a table with width-aware cell wrapping. |
no test coverage detected