MCPcopy
hub / github.com/marimo-team/marimo / indent

Function indent

frontend/src/utils/python-poet/poet.ts:9–14  ·  view source on GitHub ↗
(code: string)

Source from the content-addressed store, hash-verified

7const INDENT = " ";
8
9function indent(code: string): string {
10 return code
11 .split("\n")
12 .map((line) => INDENT + line)
13 .join("\n");
14}
15
16function indentList(list: PythonCode[]): string {
17 return `\n${indent(list.map(asString).join(",\n"))}\n`;

Callers 5

indentListFunction · 0.85
toCodeMethod · 0.85
toCodeMethod · 0.85
format_type_docsFunction · 0.85
_lint_cellsFunction · 0.85

Calls 3

splitMethod · 0.65
joinMethod · 0.45
mapMethod · 0.45

Tested by 1

_lint_cellsFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…