mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
_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
1 changed files with 2 additions and 2 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue