(format_xml_entries): Moved the stream finalization to flush(), where
it belongs.
This commit is contained in:
parent
a9c7a86ffa
commit
3ddd46c307
1 changed files with 3 additions and 1 deletions
4
format.h
4
format.h
|
|
@ -135,7 +135,9 @@ class format_xml_entries : public format_entries
|
|||
: format_entries(output_stream, ""), show_totals(_show_totals) {
|
||||
output_stream << "<?xml version=\"1.0\"?>\n<ledger>\n";
|
||||
}
|
||||
virtual ~format_xml_entries() {
|
||||
|
||||
virtual void flush() {
|
||||
format_entries::flush();
|
||||
output_stream << "</ledger>" << std::endl;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue