JM-Lemmi / ical-relay

Relay ical urls and edit them on the fly with different modules.
GNU Affero General Public License v3.0
9 stars 2 forks source link

Serialization of added Descriptions with newlines leads to malformed calendars #239

Closed JM-Lemmi closed 9 months ago

JM-Lemmi commented 9 months ago

Steps to reproduce

Take any calendar, edit Description and add a newline.

Reload Calendar twice. Will fail, because history file is malformed.

Triage

Looking at the history file its obvious, that the newline is not serialized correctly. The second line should start with an indentation.

DTSTAMP:20240117T100000
DESCRIPTION:Dies ist eine Beschreibung
mit mehreren Zeilen
END:VEVENT

The database entry of the file looks fine.

{"overwrite": "true", "new-description": "Dies ist eine Beschreibung\nmit mehreren Zeilen"}

This is probably an upstream issue.

JM-Lemmi commented 9 months ago

duplicate of #202