diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-01 01:47:36 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-01 01:47:36 -0400 |
commit | 307a93318029837f1a72e1b6cb5a8000531c875f (patch) | |
tree | 3d90c3052d6e348bb51a09904ab089cd8bbfbec4 | |
parent | e4b1359959e5830bac0723cc669e70b9b9e985f4 (diff) | |
download | fork-ledger-307a93318029837f1a72e1b6cb5a8000531c875f.tar.gz fork-ledger-307a93318029837f1a72e1b6cb5a8000531c875f.tar.bz2 fork-ledger-307a93318029837f1a72e1b6cb5a8000531c875f.zip |
When outputting a calculated value expression with "parse", show XML too.
-rw-r--r-- | src/report.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/report.cc b/src/report.cc index 4405b882..f33ece1f 100644 --- a/src/report.cc +++ b/src/report.cc @@ -493,9 +493,13 @@ namespace { expr.dump(out); out << std::endl << "--- Calculated value ---" << std::endl; - expr.calc(args).print(out); + value_t result(expr.calc(args)); + result.print(out); out << std::endl; + out << std::endl << "--- Calculated value as XML ---" << std::endl; + result.write_xml(out); + return 0L; } |