MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / wrapCellText

Method wrapCellText

packages/pi-tui/src/components/markdown.ts:677–679  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

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.

Callers 1

renderTableMethod · 0.95

Calls 1

wrapTextWithAnsiFunction · 0.90

Tested by

no test coverage detected