Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ICS/ICAL parsing issue (multiple lines, "\n" not being accounted for) #4

Closed
derekantrican opened this issue Jun 4, 2018 · 1 comment
Labels
bug Something isn't working

Comments

@derekantrican
Copy link
Owner

From Google-Apps-Script-Library created by derekantrican : derekantrican/Google-Apps-Script-Library#7

ICS link: http://msdwarren.blob.core.windows.net/calendar/sports-all.ics

Resulting event:
image

BEGIN:VEVENT
CREATED;VALUE=DATE:19000101
DESCRIPTION:Start Time: 5:30 PM\nEnd Time: 7:30 PM\nSport: Baseball\nGender
 : Male\nClass(es): V\nLocation: Lawrence North\nOpponent(s): Lawrence Nort
 h High School
DTEND:20190410T233000Z
DTSTART:20190410T213000Z
DTSTAMP:20180404T055405Z
LAST-MODIFIED;VALUE=DATE:19000101
LOCATION:Lawrence North
SEQUENCE:0
SUMMARY:Baseball\, Varsity @ Lawrence North
TRANSP:Transparent
UID:e3020681
END:VEVENT

My program parses the ics file line by line, so that's why the description is getting cut off (because the ics file here has the description split onto multiple lines). I can probably look into adjusting the program to account for this. I'll also look into why the \n isn't getting treated properly.

@derekantrican derekantrican added the bug Something isn't working label Jun 4, 2018
@blackwind
Copy link
Contributor

Note the backslashes before the commas as well, along with any other characters that may need unescaping.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants