MCPcopy Create free account
hub / github.com/Vanderhoof/PyDBML / indent

Function indent

pydbml/tools.py:12–15  ·  view source on GitHub ↗
(val: str, spaces=4)

Source from the content-addressed store, hash-verified

10
11
12def indent(val: str, spaces=4) -> str:
13 if val == '':
14 return val
15 return ' ' * spaces + val.replace('\n', '\n' + ' ' * spaces)
16
17
18def remove_bom(source: str) -> str:

Callers 12

test_emptyMethod · 0.90
test_nonemptyMethod · 0.90
render_enumFunction · 0.85
create_bodyFunction · 0.85
render_sticky_noteFunction · 0.85
render_itemsFunction · 0.85
render_projectFunction · 0.85
render_enumFunction · 0.85
render_indexesFunction · 0.85
render_tableFunction · 0.85
render_table_groupFunction · 0.85
render_noteFunction · 0.85

Calls

no outgoing calls

Tested by 2

test_emptyMethod · 0.72
test_nonemptyMethod · 0.72