Subject: | support for writing out spec-compliant CRLF line endings is missing |
The iCalendar spec prescribes that line endings should always be CRLF.
In practice, some iCalendar tools chose to use native line breaks
instead (Evolution and KOrganizer on Linux just use "\n").
Data::iCal should be able to deal with CRLF line breaks gracefully:
- If a file is read in with CRLF, as_string() should produce it.
- It should be an option to as_string() to select the EOL character:
as_string( eol => "\r\n")
As a "use case", I want to inject a new event into an existing calendar.
It may have CRLF line breaks. So, I need text generated by Data::ICal
to have CRLF line breaks as well.
Mark
Reference:
http://www.ietf.org/rfc/rfc2445.txt
(just search for "CRLF")