Commit ba2577b7 authored by Barry Warsaw's avatar Barry Warsaw

_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.
parent 76612508
...@@ -75,11 +75,11 @@ def body_quopri_len(str): ...@@ -75,11 +75,11 @@ def body_quopri_len(str):
def _max_append(L, s, maxlen, extra=''): def _max_append(L, s, maxlen, extra=''):
if not L: if not L:
L.append(s) L.append(s.lstrip())
elif len(L[-1]) + len(s) < maxlen: elif len(L[-1]) + len(s) < maxlen:
L[-1] += extra + s L[-1] += extra + s
else: else:
L.append(s) L.append(s.lstrip())
def unquote(s): def unquote(s):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment