Commit 9a0fd689 authored by Antoine Vintache's avatar Antoine Vintache

Modification of LF sequences at the end of first lines in .ics file to CRLF...

Modification of LF sequences at the end of first lines in .ics file to CRLF sequence (RFC specification for iCalendar)
parent 4ce88ca2
......@@ -45,7 +45,7 @@ class Configuration:
def write_calendar_from_dav(f, dav_components, selected_groups):
"""Write a master calendar in file f using components from CalDav"""
f.write(b'BEGIN:VCALENDAR\nPRODID:-//SaphSync//EN\nVERSION:2.0\n')
f.write(b'BEGIN:VCALENDAR\r\nPRODID:-//SaphSync//EN\r\nVERSION:2.0\r\n')
for i, dav_component in enumerate(dav_components):
print('Traitement de {}/{}\r'.format(i, len(dav_components)), end='')
dav_component.load() # Download CalDav component
......
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