Home | History | Annotate | Download | only in email

Lines Matching refs:eol

117                   maxlinelen=76, eol=NL):
141 Each line of the header will be terminated in the value of eol, which
175 joiner = eol + ' '
181 def encode(body, binary=False, maxlinelen=76, eol=NL):
188 Each line of encoded text will end with eol, which defaults to "\\n". Set
208 # Preserve line endings here so we can check later to see an eol needs to
237 encoded_body += encoded_line + '=' + eol
246 encoded_body += encoded_line + '=' + eol + prev
251 encoded_body += encoded_line + prev + '=' + eol
254 # need to add eol to the end of the line.
256 encoded_body += encoded_line + eol
272 def decode(encoded, eol=NL):
275 Lines are separated with eol, which defaults to \\n.
287 decoded += eol
312 decoded += eol
313 # Special case if original string did not end with eol
314 if not encoded.endswith(eol) and decoded.endswith(eol):