From 44823d241f01c9cb2b891283f9e110f15aeebf9a Mon Sep 17 00:00:00 2001 From: Johann Klähn Date: Fri, 8 Mar 2013 23:16:31 +0100 Subject: indent output of ledger xml --- src/ptree.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ptree.cc') 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 indented(' ', 2); + property_tree::write_xml(out, pt, indented); out << std::endl; break; } -- cgit v1.2.3