summaryrefslogtreecommitdiff
path: root/src/ptree.cc
diff options
context:
space:
mode:
authorJohann Klähn <kljohann@gmail.com>2013-03-08 23:16:31 +0100
committerJohann Klähn <kljohann@gmail.com>2013-03-08 23:16:31 +0100
commit44823d241f01c9cb2b891283f9e110f15aeebf9a (patch)
tree898b10f86fa7678c071d44320c52725717dc2b17 /src/ptree.cc
parenta875940a93848d4b18b5bed45049edc901ad07a2 (diff)
downloadfork-ledger-44823d241f01c9cb2b891283f9e110f15aeebf9a.tar.gz
fork-ledger-44823d241f01c9cb2b891283f9e110f15aeebf9a.tar.bz2
fork-ledger-44823d241f01c9cb2b891283f9e110f15aeebf9a.zip
indent output of ledger xml
Diffstat (limited to 'src/ptree.cc')
-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;
}