diff options
author | R David Murray <rdmurray@bitdance.com> | 2011-04-18 14:11:06 (GMT) |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2011-04-18 14:11:06 (GMT) |
commit | f3299989a213f8e2f174defc1174ab2acf8ec322 (patch) | |
tree | 25292f85c7f22183fe3b3728250252dea94f7207 /Doc | |
parent | d66f07a6b3b024ff7e748ad377b5125ee5cc880e (diff) | |
parent | 01581ee0b7c968adb987a36495af7ce5eb794d0d (diff) | |
download | cpython-f3299989a213f8e2f174defc1174ab2acf8ec322.zip cpython-f3299989a213f8e2f174defc1174ab2acf8ec322.tar.gz cpython-f3299989a213f8e2f174defc1174ab2acf8ec322.tar.bz2 |
Merge: #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. |