Skip to content

Long DESCRIPTION has embedded newline #210

@Azhrei

Description

@Azhrei

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions