iCal – line breaks in description

Support forumCategory: QuestionsiCal – line breaks in description
Joerg K. asked 6 years ago
Hello Nikola, can I add line breaks at the description of an ICS? If so how? :) Many thanks in advance! Cheers Joerg
2 Answers
Nikola Loncar Staff answered 6 years ago
Hi Joerg, I am not sure that it is passible in ICS format. I will need to check it. Best regards, Nikola
Joerg K. replied 6 years ago

I have found this here https://stackoverflow.com/questions/666929/encoding-newlines-in-ical-files?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa
I tested using \n as a line break but that did not work.
At the article it says:
“I had “ENCODING=quoted-printable” on the description. Once I removed that, Outlook displayed the new lines correctly.”

Joerg K. replied 6 years ago

Maybe you can check this please?

Joerg K. replied 6 years ago

Ok, I did a few more checks here.

\n

is definitely working. However, it looks like that adding \n to the setup at the iCAL settings page the \n get’s escaped and is stored as \\n at the ICS file which is breaking the line break and \n get visually displayed.

May I kindly ask you to remove the escaping for \n at the ICS settings please?

Nikola Loncar Staff answered 6 years ago
Hi Joerg, have you changed this in your code? Regarding new lines in ICS? I will add this to extension plugin. :) Best regards, Nikola
Nikola Loncar Staff replied 6 years ago

Is this part of description or summary?

Best regards,
Nikola

Joerg K. replied 6 years ago

Hi Nikola,

it is at the “description” field where I placed \n but the Easy Appointments Extension is saving it to the ICS as \\n which is not working, it should simply be \n please.

So I did not changed the code I just played with the ICS text file to find out what the line break sign has to be.

Many thanks!
Cheers
Joerg