diff --git a/vdirsyncer/storage/dav/caldav.py b/vdirsyncer/storage/dav/caldav.py
index 567e9b3..0a910e5 100644
--- a/vdirsyncer/storage/dav/caldav.py
+++ b/vdirsyncer/storage/dav/caldav.py
@@ -113,16 +113,17 @@ class CaldavStorage(Storage):
def list(self):
data = '''
-
-
-
-
-
-
- {caldavfilter}
-
-
-'''
+
+
+
+
+
+
+ {caldavfilter}
+
+
+ '''
start = self.start_date
end = self.end_date
if start and end:
@@ -155,13 +156,14 @@ class CaldavStorage(Storage):
return ()
data = '''
-
-
-
-
-
- {hrefs}
-'''
+
+
+
+
+
+ {hrefs}
+ '''
href_xml = []
for href in hrefs:
assert '/' not in href, href