]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Fix formatting of values with embedded newlines when rfc2047 encoding
authorR. David Murray <rdmurray@bitdance.com>
Fri, 7 Jan 2011 21:57:25 +0000 (21:57 +0000)
committerR. David Murray <rdmurray@bitdance.com>
Fri, 7 Jan 2011 21:57:25 +0000 (21:57 +0000)
commit6f0022d84af15d51ffa1606991f2b6e9e56448ed
treea47fdc84c7487741c7f07b3612f96e70facd677f
parent7088abdca6c3e1285c66f51fe907e6c3446773ed
Fix formatting of values with embedded newlines when rfc2047 encoding

Before this patch if a value being encoded had an embedded newline,
the line following the newline would have no leading whitespace,
and the whitespace it did have was encoded into the word.  Now
the existing whitespace gets turned into a blank, the way it does
in other header reformatting, and the _continuation_ws gets added
at the beginning of the encoded line.
Lib/email/header.py
Lib/email/test/test_email.py
Misc/NEWS