Without the newline iCal complains in the logs:

11-06-01 16:11:06 iCal[12955] Unexpected EOF, returning last token as fallback
This commit is contained in:
Lukasz Langa 2011-06-01 16:21:03 +02:00
parent 5b9180c295
commit 710b518b0f

View File

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