proper way to encode multi-line location field? #540
Answered
by
jekuer
pleasantone
asked this question in
Q&A
-
From looking at the code, it looks like newlines should be encoded in location as the 3-character literal "\\n" (backslash-backslash-lowercase-n). Unfortunately my ical output is not coming out correctly. relevant line of code:
ics file:
|
Beta Was this translation helpful? Give feedback.
Answered by
jekuer
Jan 22, 2024
Replies: 2 comments 3 replies
-
Can you share more details on your use case behind this? |
Beta Was this translation helpful? Give feedback.
3 replies
-
Understood, thank you.
…On Jan 22, 2024 at 11:13 AM -0800, Jens Kuerschner ***@***.***>, wrote:
As said, line breaks are currently not supported for location at all. The replacements are there to sanitize the input (basically explicitly blocking what you were trying to do 😉). We block any line break intents even earlier in the code.
I tested your case in multiple scenarios. The thing is, even outlook (which would be the main case for ics usage) does not support line breaks within the location, which leads to wrong output.
So, bottom line, unfortunately, we need to reject that part, as it would come with a huge overhead of problems for almost all users (especially since we cannot make sure which tool the user uses to open the ics file), only benefiting a very niche use case. The way forward would be rather to add Fantastical as calendar type and then maybe offer this functionality only for them.
Will still have a look at GEO and URL for future releases.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As said, line breaks are currently not supported for location at all. The replacements are there to sanitize the input (basically explicitly blocking what you were trying to do 😉). We block any line break intents even earlier in the code.
I tested your case in multiple scenarios. The thing is, even outlook (which would be the main case for ics usage) does not support line breaks within the location, which leads to wrong output.
So, bottom line, unfortunately, we need to reject that part, as it would come with a huge overhead of problems for almost all users (especially since we cannot make sure which tool the user uses to open the ics file), only benefiting a very niche use case. The way …