From 8f63d2d172f45238958347a0bdeae3af4d5a81f0 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 3 Feb 2005 05:08:00 +0000 Subject: [PATCH] (format_last_entry): Output tr:cost as an amount, not as an amount string. --- format.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/format.cc b/format.cc index 534a592a..7b3012bb 100644 --- a/format.cc +++ b/format.cc @@ -654,8 +654,11 @@ void format_xml_entries::format_last_entry() xml_write_value(output_stream, value_t((*i)->amount), 10); output_stream << " \n"; - if ((*i)->cost) - output_stream << " " << *(*i)->cost << "\n"; + if ((*i)->cost) { + output_stream << " \n"; + xml_write_value(output_stream, value_t(*(*i)->cost), 10); + output_stream << " \n"; + } if (! (*i)->note.empty()) output_stream << " " << xml_string((*i)->note)