From acbfcf58cc99df35612803d772908e3d345d95fc Mon Sep 17 00:00:00 2001
From: Robin Sonnabend <robin@fsmpi.rwth-aachen.de>
Date: Tue, 14 Mar 2017 20:46:27 +0100
Subject: [PATCH] Replace '\n' by '=0A' (instead of '=0D=0A') in QP

the calendar interprets \r\n as two newlines.
/close #59
---
 calendarpush.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/calendarpush.py b/calendarpush.py
index 45c240a..804e189 100644
--- a/calendarpush.py
+++ b/calendarpush.py
@@ -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")
 
-- 
GitLab