summaryrefslogtreecommitdiff
path: root/test/source
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.com>2014-07-19 21:50:27 +0200
committerTomaž Vajngerl <tomaz.vajngerl@collabora.com>2014-07-20 21:02:50 +0200
commitcd3bffed33db9e847b4db99cc1220aa6f25f65ec (patch)
tree5d7201e106f9124c6ea10b77b7ab20366727a730 /test/source
parent501f6b050b8309f54e2842a26f6a3d95a859ffb7 (diff)
xmlwriter: set indent and always write utf8 xml document
Change-Id: I1477833e696edbac2dc375329e7b26a7105d1593
Diffstat (limited to 'test/source')
-rw-r--r--test/source/xmlwriter.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/source/xmlwriter.cxx b/test/source/xmlwriter.cxx
index b98344bb9c17..c3ac40ec4a2a 100644
--- a/test/source/xmlwriter.cxx
+++ b/test/source/xmlwriter.cxx
@@ -29,7 +29,8 @@ XmlWriter::~XmlWriter()
void XmlWriter::startDocument()
{
- xmlTextWriterStartDocument(mpWriter, NULL, NULL, NULL);
+ xmlTextWriterSetIndent(mpWriter, 1);
+ xmlTextWriterStartDocument(mpWriter, NULL, "UTF-8", NULL);
}
void XmlWriter::endDocument()