MCPcopy Create free account
hub / github.com/agentforce314/clawcodex / buildRowString

Function buildRowString

ui-tui/src/components/markdown.tsx:395–404  ·  view source on GitHub ↗
(row: string[])

Source from the content-addressed store, hash-verified

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}>

Callers 1

renderTableFunction · 0.85

Calls 3

stringWidthFunction · 0.90
stripInlineMarkupFunction · 0.85
joinMethod · 0.80

Tested by

no test coverage detected