[Python-checkins] python/dist/src/Lib/email quopriMIME.py,1.2,1.3
bwarsaw@users.sourceforge.net
bwarsaw@users.sourceforge.net
Fri, 28 Jun 2002 16:48:26 -0700
Update of /cvsroot/python/python/dist/src/Lib/email
In directory usw-pr-cvs1:/tmp/cvs-serv19646/email
Modified Files:
quopriMIME.py
Log Message:
_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.
Index: quopriMIME.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/email/quopriMIME.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** quopriMIME.py 23 May 2002 15:15:30 -0000 1.2
--- quopriMIME.py 28 Jun 2002 23:48:23 -0000 1.3
***************
*** 76,84 ****
def _max_append(L, s, maxlen, extra=''):
if not L:
! L.append(s)
elif len(L[-1]) + len(s) < maxlen:
L[-1] += extra + s
else:
! L.append(s)
--- 76,84 ----
def _max_append(L, s, maxlen, extra=''):
if not L:
! L.append(s.lstrip())
elif len(L[-1]) + len(s) < maxlen:
L[-1] += extra + s
else:
! L.append(s.lstrip())