Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Noumena-Network/code
/ computeGutterWidth
Function
computeGutterWidth
src/components/HighlightedCode/renderPlan.ts:94–97 ·
view source on GitHub ↗
(code: string)
Source
from the content-addressed store, hash-verified
92
}
93
94
function
computeGutterWidth(code: string): number {
95
const
lineCount = countCharInString(code,
'\n'
) + 1
96
return
lineCount.toString().length + 2
97
}
Callers
1
getCachedHighlightedCodeRenderPlan
Function · 0.70
Calls
2
countCharInString
Function · 0.85
toString
Method · 0.65
Tested by
no test coverage detected