From 6cdb79e2a611d99fa6e13dd224a92dc8badaf2ac Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 9 Nov 2009 03:42:06 -0500 Subject: XML reporting now works via the "xml" command --- src/amount.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/amount.cc') diff --git a/src/amount.cc b/src/amount.cc index 456ef8cf..6fb0056b 100644 --- a/src/amount.cc +++ b/src/amount.cc @@ -1125,16 +1125,16 @@ bool amount_t::valid() const return true; } -void to_xml(std::ostream& out, const amount_t& amt) +void to_xml(std::ostream& out, const amount_t& amt, bool commodity_details) { push_xml x(out, "amount"); if (amt.has_commodity()) - to_xml(out, amt.commodity()); + to_xml(out, amt.commodity(), commodity_details); { - push_xml y(out, "number"); - out << amt.number(); + push_xml y(out, "quantity"); + out << y.guard(amt.quantity_string()); } } -- cgit v1.2.3