diff options
author | Barry Warsaw <barry@python.org> | 2002-06-28 23:48:23 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2002-06-28 23:48:23 (GMT) |
commit | ba2577b7f12c80dcfd3914234cc1721648b3521f (patch) | |
tree | 3c58b4fb6d7d9d02491c7afacb18b5f508c240bf /Lib | |
parent | 766125080f12f1ff0db7b1cf5b963e9a60324ab3 (diff) | |
download | cpython-ba2577b7f12c80dcfd3914234cc1721648b3521f.zip cpython-ba2577b7f12c80dcfd3914234cc1721648b3521f.tar.gz cpython-ba2577b7f12c80dcfd3914234cc1721648b3521f.tar.bz2 |
_max_append(): When adding the string `s' to its own line, it should
be lstrip'd so that old continuation whitespace is replaced by that
specified in Header's continuation_ws parameter.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/email/quopriMIME.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/email/quopriMIME.py b/Lib/email/quopriMIME.py index afd2e5e..1559c0e 100644 --- a/Lib/email/quopriMIME.py +++ b/Lib/email/quopriMIME.py @@ -75,11 +75,11 @@ def body_quopri_len(str): def _max_append(L, s, maxlen, extra=''): if not L: - L.append(s) + L.append(s.lstrip()) elif len(L[-1]) + len(s) < maxlen: L[-1] += extra + s else: - L.append(s) + L.append(s.lstrip()) def unquote(s): |