mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-03-25 08:55:50 +00:00
Indent xml pieces
This breaks my indentation in vim otherwise. I am fully that this indent creates different strings with extreme amounts of whitespace, but this doesn't change any functionality, so i don't care.
This commit is contained in:
parent
dce98d2fed
commit
e60f0b1aaa
1 changed files with 19 additions and 17 deletions
|
|
@ -113,16 +113,17 @@ class CaldavStorage(Storage):
|
|||
|
||||
def list(self):
|
||||
data = '''<?xml version="1.0" encoding="utf-8" ?>
|
||||
<C:calendar-query xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">
|
||||
<D:prop>
|
||||
<D:getetag/>
|
||||
</D:prop>
|
||||
<C:filter>
|
||||
<C:comp-filter name="VCALENDAR">
|
||||
{caldavfilter}
|
||||
</C:comp-filter>
|
||||
</C:filter>
|
||||
</C:calendar-query>'''
|
||||
<C:calendar-query xmlns:D="DAV:"
|
||||
xmlns:C="urn:ietf:params:xml:ns:caldav">
|
||||
<D:prop>
|
||||
<D:getetag/>
|
||||
</D:prop>
|
||||
<C:filter>
|
||||
<C:comp-filter name="VCALENDAR">
|
||||
{caldavfilter}
|
||||
</C:comp-filter>
|
||||
</C:filter>
|
||||
</C:calendar-query>'''
|
||||
start = self.start_date
|
||||
end = self.end_date
|
||||
if start and end:
|
||||
|
|
@ -155,13 +156,14 @@ class CaldavStorage(Storage):
|
|||
return ()
|
||||
|
||||
data = '''<?xml version="1.0" encoding="utf-8" ?>
|
||||
<C:calendar-multiget xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">
|
||||
<D:prop>
|
||||
<D:getetag/>
|
||||
<C:calendar-data/>
|
||||
</D:prop>
|
||||
{hrefs}
|
||||
</C:calendar-multiget>'''
|
||||
<C:calendar-multiget xmlns:D="DAV:"
|
||||
xmlns:C="urn:ietf:params:xml:ns:caldav">
|
||||
<D:prop>
|
||||
<D:getetag/>
|
||||
<C:calendar-data/>
|
||||
</D:prop>
|
||||
{hrefs}
|
||||
</C:calendar-multiget>'''
|
||||
href_xml = []
|
||||
for href in hrefs:
|
||||
assert '/' not in href, href
|
||||
|
|
|
|||
Loading…
Reference in a new issue