summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-01 01:47:36 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-01 01:47:36 -0400
commit307a93318029837f1a72e1b6cb5a8000531c875f (patch)
tree3d90c3052d6e348bb51a09904ab089cd8bbfbec4
parente4b1359959e5830bac0723cc669e70b9b9e985f4 (diff)
downloadfork-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.cc6
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;
}