Pass the stripped line to rrulestr._parse_rfc_rrule(), instead of
passing the unprocessed string.
diff --git a/dateutil/rrule.py b/dateutil/rrule.py
index 0570a36..5eb957e 100644
--- a/dateutil/rrule.py
+++ b/dateutil/rrule.py
@@ -1009,8 +1009,9 @@
i += 1
if (not forceset and len(lines) == 1 and
(s.find(':') == -1 or s.startswith('RRULE:'))):
- return self._parse_rfc_rrule(s, cache=cache, dtstart=dtstart,
- ignoretz=ignoretz, tzinfos=tzinfos)
+ return self._parse_rfc_rrule(lines[0], cache=cache,
+ dtstart=dtstart, ignoretz=ignoretz,
+ tzinfos=tzinfos)
else:
rrulevals = []
rdatevals = []