diff options
Diffstat (limited to 'src/amount.cc')
-rw-r--r-- | src/amount.cc | 8 |
1 files changed, 4 insertions, 4 deletions
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()); } } |