From a621cb8617d0d871565a81c8aec9a57794e01f9c Mon Sep 17 00:00:00 2001 From: maniosullivan Date: Wed, 16 Mar 2016 10:47:45 -0700 Subject: [PATCH] Issue #2686827: Worked around a bug in iCalcreator relating to very long RRULEs. --- libraries/ParserVcalendar.inc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libraries/ParserVcalendar.inc b/libraries/ParserVcalendar.inc index 4f94810..661994b 100644 --- a/libraries/ParserVcalendar.inc +++ b/libraries/ParserVcalendar.inc @@ -493,6 +493,11 @@ class ParserVcalendar { } $rrule = trim($vcalendar_component->createRrule()); + + # Due to a bug in iCalcreator 2.20.2, any RRULE that's too long to fit on one line will be returned without + # the endline and second-line indentation removed. Thus, we need to do it ourselves. + $rrule = preg_replace('/\s/', '', $rrule); + $rdate = trim($vcalendar_component->createRdate()); $exrule = trim($vcalendar_component->createExrule()); $exdate = trim($vcalendar_component->createExdate()); -- GitLab