From 3356d3235f1bd72e2f6676e223ef6165a9c47fac Mon Sep 17 00:00:00 2001 From: Guillaume Ayoub Date: Thu, 7 Jul 2011 12:38:56 +0200 Subject: [PATCH] Add the XML declaration --- radicale/xmlutils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/radicale/xmlutils.py b/radicale/xmlutils.py index d76c5c2..227b308 100644 --- a/radicale/xmlutils.py +++ b/radicale/xmlutils.py @@ -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 '\n' + ET.tostring( + element, config.get("encoding", "request")) def _tag(short_name, local):