]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-139065: Fix trailing space before long word in textwrap (GH-139070) (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 10 Oct 2025 13:51:41 +0000 (15:51 +0200)
committerGitHub <noreply@github.com>
Fri, 10 Oct 2025 13:51:41 +0000 (13:51 +0000)
commitb1bc743d3668847be3aca2ece1117082bbdd3753
treeaae00fcf7a7daffe802c6786038f5f3cee05bbdb
parentb367d104edffa2523c0ee040f6ae7494b2dac9e9
[3.13] gh-139065: Fix trailing space before long word in textwrap (GH-139070) (GH-139903)

Fix trailing space before a wrapped long word if the line length with
a space is exactly "width".
(cherry picked from commit 1c598e04361dbfc9cf465f3a02f83715c11b028c)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/test/test_textwrap.py
Lib/textwrap.py
Misc/NEWS.d/next/Library/2025-09-17-19-08-34.gh-issue-139065.Hu8fM5.rst [new file with mode: 0644]