mirror of
https://github.com/Kozea/Radicale.git
synced 2025-06-26 16:45:52 +00:00
Add the XML declaration
This commit is contained in:
parent
737802876f
commit
3356d3235f
1 changed files with 2 additions and 1 deletions
|
@ -86,7 +86,8 @@ def _pretty_xml(element, level=0):
|
|||
if level and (not element.tail or not element.tail.strip()):
|
||||
element.tail = i
|
||||
if not level:
|
||||
return ET.tostring(element, config.get("encoding", "request"))
|
||||
return '<?xml version="1.0"?>\n' + ET.tostring(
|
||||
element, config.get("encoding", "request"))
|
||||
|
||||
|
||||
def _tag(short_name, local):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue