diff options
author | R David Murray <rdmurray@bitdance.com> | 2011-04-18 14:04:34 (GMT) |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2011-04-18 14:04:34 (GMT) |
commit | 01581ee0b7c968adb987a36495af7ce5eb794d0d (patch) | |
tree | 4bd6ec577ce781c19418b62463f2f8fd758715dd /Doc | |
parent | 74c0031066c365563cd0b4e5ad8da3687ed60656 (diff) | |
download | cpython-01581ee0b7c968adb987a36495af7ce5eb794d0d.zip cpython-01581ee0b7c968adb987a36495af7ce5eb794d0d.tar.gz cpython-01581ee0b7c968adb987a36495af7ce5eb794d0d.tar.bz2 |
#11492: rewrite header folding algorithm. Less code, more passing tests.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/email.header.rst | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/Doc/library/email.header.rst b/Doc/library/email.header.rst index 29752c4..80c7346 100644 --- a/Doc/library/email.header.rst +++ b/Doc/library/email.header.rst @@ -109,9 +109,17 @@ Here is the :class:`Header` class description: Encode a message header into an RFC-compliant format, possibly wrapping long lines and encapsulating non-ASCII parts in base64 or quoted-printable - encodings. Optional *splitchars* is a string containing characters to - split long ASCII lines on, in rough support of :rfc:`2822`'s *highest - level syntactic breaks*. This doesn't affect :rfc:`2047` encoded lines. + encodings. + + Optional *splitchars* is a string containing characters which should be + given extra weight by the splitting algorithm during normal header + wrapping. This is in very rough support of :RFC:`2822`\'s 'higher level + syntactic breaks': split points preceded by a splitchar are preferred + during line splitting, with the characters preferred in the order in + which they appear in the string. Space and tab may be included in the + string to indicate whether preference should be given to one over the + other as a split point when other split chars do not appear in the line + being split. Splitchars does not affect RFC 2047 encoded lines. *maxlinelen*, if given, overrides the instance's value for the maximum line length. |