Vajrasky Kok added the comment:

Something is not right if we use more than one space.

>>> textwrap.summarize('hello      world!', width=12)
'hello world!'
>>> textwrap.summarize('hello      world!', width=11)
'hello (...)'
>>> textwrap.summarize('hello      world!', width=10)
'(...)'

I expect the last statement would give result: 'hello (...)' because 'hello' is 
just 5 characters, less than 10.

----------
nosy: +vajrasky

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue18585>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to