Commit acbfcf58 authored by Robin Sonnabend's avatar Robin Sonnabend

Replace '\n' by '=0A' (instead of '=0D=0A') in QP

the calendar interprets \r\n as two newlines.
/close #59
parent 353530de
......@@ -145,5 +145,5 @@ def get_timezone_offset():
return timedelta(hours=round(difference.seconds / 3600 + difference.days * 24))
def encode_quopri(text):
return quopri.encodestring(text.encode("utf-8")).replace(b"\n", b"=0D=0A").decode("utf-8")
return quopri.encodestring(text.encode("utf-8")).replace(b"\n", b"=0A").decode("utf-8")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment