summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ptree.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ptree.cc b/src/ptree.cc
index 1d2d4b26..e7afdcd1 100644
--- a/src/ptree.cc
+++ b/src/ptree.cc
@@ -80,7 +80,8 @@ void format_ptree::flush()
switch (format) {
case FORMAT_XML:
- property_tree::write_xml(out, pt);
+ property_tree::xml_writer_settings<char> indented(' ', 2);
+ property_tree::write_xml(out, pt, indented);
out << std::endl;
break;
}