lpil / icalendar

🗓️ A small library for reading and writing ICalendar files.
MIT License
103 stars 56 forks source link

ATTENDEE cut between email with new line - can´t parse #12

Closed benjamin79 closed 4 years ago

benjamin79 commented 7 years ago

Hi,

Outlook 2016 generated the following 2 lines in an ics:

ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN=someone @gmail.com:MAILTO:someone@gmail.com

Problem: Parser sees it as 2 lines and not 1.

How can ATTENDEE be parsed?

thanks

lpil commented 7 years ago

Thanks!

benjamin79 commented 7 years ago

Any update on this? I can´t solve it myself.

lpil commented 7 years ago

Perhaps you could open a PR with a failing unit test? That would help :)

ericdude4 commented 6 years ago

For future reference, "unfold" your ics string with String.replace(ics_string, "\n ", "") before calling the ICalendar.Deserialize.from_ics/1

Read more here (4.1 Content Lines)

ericdude4 commented 4 years ago

@lpil This can be closed

lpil commented 4 years ago

Thank you