]> granicus.if.org Git - python/commit
SF bug 797650: Infinite loop in textwrap.py
authorRaymond Hettinger <python@rcn.com>
Sat, 30 Aug 2003 14:43:55 +0000 (14:43 +0000)
committerRaymond Hettinger <python@rcn.com>
Sat, 30 Aug 2003 14:43:55 +0000 (14:43 +0000)
commitc11dbcd4bfb6c366e9ce541b982a036b34f7c30c
tree1ff7b900d7de13d81b1c46b0ba8c3c882184d679
parent62297132215490e9cb406e1a21f03aff40d421cb
SF bug 797650: Infinite loop in textwrap.py

When the indents were set to longer than the width and long word breaking
was enabled, an infinite loop would result because the inner loop did not
assure that at least one character was stripped off on every pass.
Lib/test/test_textwrap.py
Lib/textwrap.py