mirror of
https://github.com/python/cpython.git
synced 2025-12-09 18:48:05 +00:00
gh-120930: Remove extra blank occuring in wrapped encoded words in email headers (GH-121747)
This commit is contained in:
parent
1056f2bc20
commit
cecaceea31
3 changed files with 16 additions and 0 deletions
|
|
@ -2988,6 +2988,7 @@ def _fold_as_ew(to_encode, lines, maxlen, last_ew, ew_combine_allowed, charset,
|
|||
excess = len(encoded_word) - remaining_space
|
||||
lines[-1] += encoded_word
|
||||
to_encode = to_encode[len(to_encode_word):]
|
||||
leading_whitespace = ''
|
||||
|
||||
if to_encode:
|
||||
lines.append(' ')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue