MCPcopy Create free account
hub / github.com/IIIIQIIII/claude-code / removeNewlines

Function removeNewlines

src/native-ts/color-diff/index.ts:650–659  ·  view source on GitHub ↗
(h: Highlight)

Source from the content-addressed store, hash-verified

648}
649
650function removeNewlines(h: Highlight): void {
651 h.lines = h.lines.map(line =>
652 line.flatMap(([style, text]) =>
653 text
654 .split('\n')
655 .filter(p => p.length > 0)
656 .map((p): Block => [style, p]),
657 ),
658 )
659}
660
661function charWidth(ch: string): number {
662 return stringWidth(ch)

Callers 2

renderMethod · 0.85
renderMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected