From: Barry Warsaw Date: Fri, 28 Jun 2002 23:48:23 +0000 (+0000) Subject: _max_append(): When adding the string `s' to its own line, it should X-Git-Tag: v2.3c1~5170 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ba2577b7f12c80dcfd3914234cc1721648b3521f;p=thirdparty%2FPython%2Fcpython.git _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. --- diff --git a/Lib/email/quopriMIME.py b/Lib/email/quopriMIME.py index afd2e5ec5ac6..1559c0e3f3c2 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):