MCPcopy
hub / github.com/codeaashu/claude-code / renderBorderLine

Function renderBorderLine

src/components/MarkdownTable.tsx:226–238  ·  view source on GitHub ↗
(type: 'top' | 'middle' | 'bottom')

Source from the content-addressed store, hash-verified

224
225 // Render horizontal border as a single string
226 function renderBorderLine(type: 'top' | 'middle' | 'bottom'): string {
227 const [left, mid, cross, right] = {
228 top: ['┌', '─', '┬', '┐'],
229 middle: ['├', '─', '┼', '┤'],
230 bottom: ['└', '─', '┴', '┘']
231 }[type] as [string, string, string, string];
232 let line_0 = left;
233 columnWidths.forEach((width_1, colIndex_3) => {
234 line_0 += mid.repeat(width_1 + 2);
235 line_0 += colIndex_3 < columnWidths.length - 1 ? cross : right;
236 });
237 return line_0;
238 }
239
240 // Render vertical format (key-value pairs) for extra-narrow terminals
241 function renderVerticalFormat(): string {

Callers 1

MarkdownTableFunction · 0.85

Calls 1

forEachMethod · 0.80

Tested by

no test coverage detected