Line endings in ICS must be Windows style
According to http://tools.ietf.org/html/rfc2445#section-4.1, line endings in iCalendar must be in Windows style using \r\n instead of \n only.
The TrimViewHelper must be adopted to replace Linux and Mac endings to Windows endings.
This raises another problem: If the teaser of a news item contains line feeds, the new line must be indented; if not, the feed won't validate. This is described at http://tools.ietf.org/html/rfc2445#section-4.1.
To provide indentation for the second, third etc. line of a teaser, a ViewHelper must insert a proprietary tag at the beginning of the line. This tag is then replaced by a SPACE by the TrimViewHelper, after trimming tabs and whitespaces.
After these changes, the feed will validate. This can be tested e.g. with http://severinghaus.org/projects/icv/
[BUGFIX] Line endings in ICS must be Windows style
According to RFC2445 (iCalendar specification), line endings must be in
Windows style (\r\n). The TrimViewHelper is adapted to replace other
line endings to Windows style for ICS only.
Furthermore, line feeds in the DESCRIPTION (teaser field of news) must
be processed to have a space at the beginning of a new line to make the
Reviewed-by: Patrick Wiggelman <email@example.com>
Tested-by: Patrick Wiggelman <firstname.lastname@example.org>
#1 Updated by Lorenz Ulrich over 5 years ago
I fixed this in my fork:
If you're interested in fixing this in the official repo, you can either cherry-pick the change or I can push it to Gerrit.