[issue13857] Add textwrap.indent() as counterpart to textwrap.dedent()
Georg Brandl
report at bugs.python.org
Thu Feb 2 22:25:20 CET 2012
Georg Brandl <georg at python.org> added the comment:
IMO removing trailing newlines is not acceptable. You could use splitlines(keepends=True) to keep final newlines (but then the default function that determines lines to indent needs to ignore these newlines).
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13857>
_______________________________________
More information about the Python-bugs-list
mailing list