_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:
parent
766125080f
commit
ba2577b7f1
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue