indent output of ledger xml

This commit is contained in:
Johann Klähn 2013-03-08 23:16:31 +01:00
parent a875940a93
commit 44823d241f

View file

@ -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;
}