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

Function removeNewlines

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

Source from the content-addressed store, hash-verified

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

Callers 2

renderMethod · 0.85
renderMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected