Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Prev Previous commit
Next Next commit
fixup! Fix email header wrapping omitting white space
  • Loading branch information
robsdedude committed Feb 10, 2026
commit fb23a6eb37042378ce2ef025fb5c46ea7464c3d0
1 change: 0 additions & 1 deletion Lib/email/_header_value_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -3043,7 +3043,6 @@ def _fold_as_ew(to_encode, lines, maxlen, last_ew, ew_combine_allowed, charset,
# encoded word.
leading_whitespace = _steal_all_trailing_WSP_if_exists(lines)
to_encode = leading_whitespace + to_encode
Comment thread
robsdedude marked this conversation as resolved.
lines[-1] = ' '

trailing_wsp = ''
if to_encode[-1] in WSP:
Expand Down
Loading