]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-139065: Fix trailing space before long word in textwrap (GH-139070)
authorSerhiy Storchaka <storchaka@gmail.com>
Fri, 10 Oct 2025 13:29:18 +0000 (16:29 +0300)
committerGitHub <noreply@github.com>
Fri, 10 Oct 2025 13:29:18 +0000 (16:29 +0300)
commit1c598e04361dbfc9cf465f3a02f83715c11b028c
tree45c3e66fb1ef628580dcdb3d52ea1474ae85019a
parent5c942f11cdf5f9d7313200983fa0c58b3bc670a2
gh-139065: Fix trailing space before long word in textwrap (GH-139070)

Fix trailing space before a wrapped long word if the line length with
a space is exactly "width".
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]