Skip to content

Commit

Permalink
_split_ascii(): lstrip the individual lines in the ascii split lines,
Browse files Browse the repository at this point in the history
since we'll be adding our own continuation whitespace later.
  • Loading branch information
warsaw committed Mar 7, 2003
1 parent 28ffcef commit 33975ea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Lib/email/Header.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,9 @@ def _split_ascii(s, firstlen, restlen, continuation_ws, splitchars):
lines = []
maxlen = firstlen
for line in s.splitlines():
# Ignore any leading whitespace (i.e. continuation whitespace) already
# on the line, since we'll be adding our own.
line = line.lstrip()
if len(line) < maxlen:
lines.append(line)
maxlen = restlen
Expand Down

0 comments on commit 33975ea

Please sign in to comment.