瀏覽代碼

Without the newline iCal complains in the logs:

11-06-01 16:11:06 iCal[12955] Unexpected EOF, returning last token as fallback
Lukasz Langa 14 年之前
父節點
當前提交
710b518b0f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      radicale/ical.py

+ 1 - 1
radicale/ical.py

@@ -52,7 +52,7 @@ def serialize(headers=(), items=()):
     for part in (headers, items):
         if part:
             lines.append("\n".join(item.text for item in part))
-    lines.append("END:VCALENDAR")
+    lines.append("END:VCALENDAR\n")
     return "\n".join(lines)