-
Notifications
You must be signed in to change notification settings - Fork 163
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
Description doesn't allow new lines #62
Comments
Is this still relevant? |
Any solution or workaround on this? |
Sorry. it looks like the workaround is to use "dev-master" ;-) |
This is an issue again. It seems like EDIT: I realized I'm using an outdated version (0.17.0), so maybe this is resolved in version 2.x. I can't verify this because I'm using this library via another library and don't have control over the version that's used. |
If I call
Event->setDescription()
with"\n"
(so that the new line is rendered), then the description field ends up with a new line being inserted and appearing like this:When this is imported into an application, then only the first line of the description appears.
If I call the same method with
'\n'
(a literal\n
) then the description field ends up like this:DESCRIPTION:First line of description\\nSecond line of description
When this is imported it results in a literal
\n
appearing.What you want is this appearing in the file:
DESCRIPTION:First line of description\nSecond line of description
From digging around in the code it looks like you can swap this call in
Eluceo\iCal\Property\Event\Description
:with:
That appears to work, although I haven't tried running the tests
The text was updated successfully, but these errors were encountered: