_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.
This commit is contained in:
Barry Warsaw 2002-06-28 23:48:23 +00:00
parent 766125080f
commit ba2577b7f1
1 changed files with 2 additions and 2 deletions

View File

@ -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):