MCPcopy Create free account
hub / github.com/SooLab/CGFormer / _indent

Method _indent

utils/config.py:36–44  ·  view source on GitHub ↗
(s_, num_spaces)

Source from the content-addressed store, hash-verified

34
35 def __str__(self):
36 def _indent(s_, num_spaces):
37 s = s_.split("\n")
38 if len(s) == 1:
39 return s_
40 first = s.pop(0)
41 s = [(num_spaces * " ") + line for line in s]
42 s = "\n".join(s)
43 s = first + "\n" + s
44 return s
45
46 r = ""
47 s = []

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected