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

Function indentOneTab

packages/smart-cells/src/parsers/sql-parser.ts:328–333  ·  view source on GitHub ↗

* Indent code by one tab (4 spaces).

(code: string)

Source from the content-addressed store, hash-verified

326 * Indent code by one tab (4 spaces).
327 */
328function indentOneTab(code: string): string {
329 return code
330 .split("\n")
331 .map((line) => (line?.trim() ? ` ${line}` : line))
332 .join("\n");
333}

Callers 1

transformOutMethod · 0.70

Calls 3

splitMethod · 0.65
joinMethod · 0.45
mapMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…