From ba2577b7f12c80dcfd3914234cc1721648b3521f Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Fri, 28 Jun 2002 23:48:23 +0000 Subject: _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. --- Lib/email/quopriMIME.py | 4 ++-- 1 file 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): -- cgit v0.12