-
Notifications
You must be signed in to change notification settings - Fork 129
Description
I'm using ics v0.4. Output of executing python3 interactively:
Python 3.7.1 (default, Dec 14 2018, 13:28:58)
[Clang 4.0.1 (tags/RELEASE_401/final)] :: Anaconda, Inc. on darwin
The issue I'm having is that a long DESCRIPTION that spans multiple lines in the .ics file is not having the embedded newlines removed when it should (example event is below).
(I will grab the latest v0.6 but I don't see my issue mentioned in an issue or PR since v0.4, so I'm thinking it hasn't been addressed.)
Basically, the iCal format allows for embedded newlines that should be stripped from the data if the following line is indented by one or more spaces. Both the newline and the spaces are to be removed. (Basically, this works just like headers in an email message or HTTP request. What a surprise, huh? 🙂)
I might have a workaround for my code by replacing \n (newline-space) with an empty string, but I'm not sure that'll work in all cases.
Attachment renamed to buggy.txt because of GitHub...
buggy.ics