MCPcopy Create free account
hub / github.com/bugy/script-server / dedent

Function dedent

src/utils/string_utils.py:69–77  ·  view source on GitHub ↗
(multiline_text)

Source from the content-addressed store, hash-verified

67
68
69def dedent(multiline_text):
70 if multiline_text.startswith('\n'):
71 multiline_text = multiline_text[1:]
72
73 lines = multiline_text.split('\n')
74 for index, line in enumerate(lines):
75 lines[index] = line.lstrip()
76
77 return '\n'.join(lines)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected