diff options
author | Johann Klähn <kljohann@gmail.com> | 2013-03-08 23:16:31 +0100 |
---|---|---|
committer | Johann Klähn <kljohann@gmail.com> | 2013-03-08 23:16:31 +0100 |
commit | 44823d241f01c9cb2b891283f9e110f15aeebf9a (patch) | |
tree | 898b10f86fa7678c071d44320c52725717dc2b17 /src/ptree.cc | |
parent | a875940a93848d4b18b5bed45049edc901ad07a2 (diff) | |
download | fork-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.cc | 3 |
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; } |