]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] 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:54:46 +0000 (15:54 +0200)
committerGitHub <noreply@github.com>
Fri, 10 Oct 2025 13:54:46 +0000 (13:54 +0000)
commitade6dea24bcb3daa18447edc46a4dbfa351df45d
tree48a1e11f0172b7070a431e523013c057404b8edf
parent08738ce52109a5a1ee9baaa59b3e2263442be99a
[3.14] gh-139065: Fix trailing space before long word in textwrap (GH-139070) (GH-139902)

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]