You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
textwrap can leave a trailing space before long word #139065
>>> textwrap.wrap('Did you say "supercalifragilisticexpialidocious?" How *do* you spell that odd word, anyways?', 12)
['Did you say ', '"supercalifr', 'agilisticexp', 'ialidocious?', '" How *do*', 'you spell', 'that odd', 'word,', 'anyways?']
Note a trailing space in the first line. No trailing spaces in other lines.
This is even in the tests, but I do not think it is an intentional behavior. The bug was introduced in the fix for:
Activity
pythongh-139065: Fix trailing space before long word in textwrap
pythongh-139065: Fix trailing space before long word in textwrap
gh-139065: Fix trailing space before long word in textwrap (GH-139070)
pythongh-139065: Fix trailing space before long word in textwrap (pyt…
pythongh-139065: Fix trailing space before long word in textwrap (pyt…
[3.13] gh-139065: Fix trailing space before long word in textwrap (GH…
[3.14] gh-139065: Fix trailing space before long word in textwrap (GH…