Просмотр исходного кода

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 лет назад
Родитель
Сommit
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)