hummingly / ics

A Rust library for creating iCalendar files as specified in RFC5545 and RFC7986
Other
30 stars 3 forks source link

Handle new line character #21

Closed SuperKenVery closed 6 months ago

SuperKenVery commented 6 months ago

I hope I don't need to do this string replace:

 event.push(Description::new(course.notes.clone().replace("\n", "\\n")));

Similar process should be done in Description, Location and probably everywhere. I'm not familiar with the specs though :(

SuperKenVery commented 6 months ago

Sorry I didn't see the escape_text function