[issue13857] Add textwrap.indent() as counterpart to textwrap.dedent()
Nick Coghlan
report at bugs.python.org
Mon Jan 30 22:03:03 CET 2012
Nick Coghlan <ncoghlan at gmail.com> added the comment:
Please go ahead!
And Georg is right - the short spelling doesn't handle the first line correctly. It also suffers from the "trailing whitespace" problem that Amaury pointed out in my original version.
The tests for the new function should check both those cases (i.e. don't indent blank lines, ensure the first line is correctly indented).
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13857>
_______________________________________
More information about the Python-bugs-list
mailing list