cpython icon indicating copy to clipboard operation
cpython copied to clipboard

gh-120930: Do not add additional space within encoded word when folding EmailMessage

Open matthieucan opened this issue 1 year ago • 1 comments

After some changes applied in ffe9ba04778f852a14f2404b5fcf13cb3ba1bf45 to fix whitespace between encoded words when folding an EmailMessage, the following issue was introduced:

  • When an encoded word is split in two parts in the folding process (to fit the first part on the end of one line, and the second part on the beginning of the next line), an encoded whitespace character is added at the beginning of the second line.

This patch fixes the special case.

  • Issue: gh-120930

matthieucan avatar Jul 14 '24 09:07 matthieucan

All commit authors signed the Contributor License Agreement.
CLA signed

ghost avatar Jul 14 '24 09:07 ghost

LGTM, though I did suggest an alternative phrasing for the news item.

bitdancer avatar Jul 15 '24 04:07 bitdancer

Thanks @matthieucan for the PR, and @encukou for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13. 🐍🍒⛏🤖

miss-islington-app[bot] avatar Jul 18 '24 12:07 miss-islington-app[bot]

GH-121963 is a backport of this pull request to the 3.13 branch.

bedevere-app[bot] avatar Jul 18 '24 12:07 bedevere-app[bot]

GH-121964 is a backport of this pull request to the 3.12 branch.

bedevere-app[bot] avatar Jul 18 '24 12:07 bedevere-app[bot]