1
0
Fork 0
mirror of synced 2024-06-16 22:11:13 -04:00
dotbot/dotbot/util/string.py
Matt Richards 9e89d7f524 blacken
2021-02-15 21:11:16 +10:00

5 lines
193 B
Python

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