| Current Path : /usr/local/python-3.10/lib/python3.10/site-packages/gdown/ |
| Current File : //usr/local/python-3.10/lib/python3.10/site-packages/gdown/_indent.py |
# textwrap.indent for Python2
def indent(text, prefix):
def prefixed_lines():
for line in text.splitlines(True):
yield (prefix + line if line.strip() else line)
return "".join(prefixed_lines())