Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
12
def
indent(val: str, spaces=4) -> str:
13
if
val ==
''
:
14
return
val
15
return
' '
* spaces + val.replace(
'\n'
,
'\n'
+
' '
* spaces)
16
17
18
def
remove_bom(source: str) -> str:
Callers
12
test_empty
Method · 0.90
test_nonempty
Method · 0.90
render_enum
Function · 0.85
create_body
Function · 0.85
render_sticky_note
Function · 0.85
render_items
Function · 0.85
render_project
Function · 0.85
render_enum
Function · 0.85
render_indexes
Function · 0.85
render_table
Function · 0.85
render_table_group
Function · 0.85
render_note
Function · 0.85
Calls
no outgoing calls
Tested by
2
test_empty
Method · 0.72
test_nonempty
Method · 0.72