mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +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):
|
def list(self):
|
||||||
data = '''<?xml version="1.0" encoding="utf-8" ?>
|
data = '''<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<C:calendar-query xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">
|
<C:calendar-query xmlns:D="DAV:"
|
||||||
<D:prop>
|
xmlns:C="urn:ietf:params:xml:ns:caldav">
|
||||||
<D:getetag/>
|
<D:prop>
|
||||||
</D:prop>
|
<D:getetag/>
|
||||||
<C:filter>
|
</D:prop>
|
||||||
<C:comp-filter name="VCALENDAR">
|
<C:filter>
|
||||||
{caldavfilter}
|
<C:comp-filter name="VCALENDAR">
|
||||||
</C:comp-filter>
|
{caldavfilter}
|
||||||
</C:filter>
|
</C:comp-filter>
|
||||||
</C:calendar-query>'''
|
</C:filter>
|
||||||
|
</C:calendar-query>'''
|
||||||
start = self.start_date
|
start = self.start_date
|
||||||
end = self.end_date
|
end = self.end_date
|
||||||
if start and end:
|
if start and end:
|
||||||
|
|
@ -155,13 +156,14 @@ class CaldavStorage(Storage):
|
||||||
return ()
|
return ()
|
||||||
|
|
||||||
data = '''<?xml version="1.0" encoding="utf-8" ?>
|
data = '''<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<C:calendar-multiget xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">
|
<C:calendar-multiget xmlns:D="DAV:"
|
||||||
<D:prop>
|
xmlns:C="urn:ietf:params:xml:ns:caldav">
|
||||||
<D:getetag/>
|
<D:prop>
|
||||||
<C:calendar-data/>
|
<D:getetag/>
|
||||||
</D:prop>
|
<C:calendar-data/>
|
||||||
{hrefs}
|
</D:prop>
|
||||||
</C:calendar-multiget>'''
|
{hrefs}
|
||||||
|
</C:calendar-multiget>'''
|
||||||
href_xml = []
|
href_xml = []
|
||||||
for href in hrefs:
|
for href in hrefs:
|
||||||
assert '/' not in href, href
|
assert '/' not in href, href
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue