[issue26214] textwrap should minimize breaks

2016-01-27 Thread Tuomas Salo
New submission from Tuomas Salo: This code: import textwrap textwrap.wrap("123 123 1234567", width=5) currently* produces this output: ['123', '123 1', '23456', '7'] I would expect the textwrap module to only break words when absolutely necessary. That is, I would hav

[issue26214] textwrap should minimize number of breaks in extra long words

2016-01-27 Thread Tuomas Salo
Changes by Tuomas Salo <tuomas.s...@gmail.com>: -- title: textwrap should minimize breaks -> textwrap should minimize number of breaks in extra long words ___ Python tracker <rep...@bugs.python.org> <http://bugs.pyt