diff --git a/tests/storage/test_http.py b/tests/storage/test_http.py index 510582f..82cd09f 100644 --- a/tests/storage/test_http.py +++ b/tests/storage/test_http.py @@ -24,6 +24,7 @@ class TestHttpStorage(object): (u'BEGIN:VEVENT\n' u'SUMMARY:Eine zweite Kurzinfo\n' u'DESCRIPTION:Beschreibung des anderen Termines\n' + u' With an extra line for description\n' u'BEGIN:VALARM\n' u'ACTION:AUDIO\n' u'TRIGGER:19980403T120000\n' diff --git a/vdirsyncer/storage/http.py b/vdirsyncer/storage/http.py index e7d8eea..e76b104 100644 --- a/vdirsyncer/storage/http.py +++ b/vdirsyncer/storage/http.py @@ -20,7 +20,8 @@ def split_collection(text): collection_type = None item_type = None for line in text.splitlines(): - if not line.strip(): + if u':' not in line: + item.append(line) continue key, value = (x.strip() for x in line.split(u':', 1)) if key == u'BEGIN':