[issue18723] shorten function of textwrap module is susceptible to non-normalized whitespaces
Antoine Pitrou
report at bugs.python.org
Tue Aug 13 11:24:07 CEST 2013
Antoine Pitrou added the comment:
Correcting myself:
> i.e. it should not affect the placeholder's own spaces.
... except for leading whitespace in case the placeholder ends up alone in the result.
i.e. shorten("somethingtoolong") should return "(...)", not " (...)".
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18723>
_______________________________________
More information about the Python-bugs-list
mailing list