mirror of
1
0
Fork 0
dotbot/dotbot/util/string.py

5 lines
181 B
Python

def indent_lines(string, amount=2, delimiter="\n"):
whitespace = " " * amount
sep = f"{delimiter}{whitespace}"
return f"{whitespace}{sep.join(string.split(delimiter))}"