diff --git a/src/model/ical_bridge.rs b/src/model/ical_bridge.rs index 50523a6..d305188 100644 --- a/src/model/ical_bridge.rs +++ b/src/model/ical_bridge.rs @@ -41,6 +41,9 @@ pub fn load_calendar(calendar_path: &std::path::Path, events: &mut EventsCollect Err(e) => { warn!("Could not read the calendar: {}", e); return; }, }; + // make sure to handle wrapped lines (as per RFC 5545 section 3.1) + let contents = icalendar::parser::unfold(&contents); + let res = icalendar::parser::read_calendar(&contents); match res { Ok(parsed_calendar) => { calendar.extend(parsed_calendar.components); },