diff options
author | John Wiegley <johnw@newartisans.com> | 2010-03-07 22:47:07 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2010-03-08 01:11:48 -0500 |
commit | 75b7294a6db10e7f7b18b6aeef1aa0f568124a1d (patch) | |
tree | 0fecbc12acaacb33cf3c241c536de3347d2742ed /src/draft.cc | |
parent | 7e79cd82cd4ad5f87f40e6beebdb53e65bb11168 (diff) | |
download | fork-ledger-75b7294a6db10e7f7b18b6aeef1aa0f568124a1d.tar.gz fork-ledger-75b7294a6db10e7f7b18b6aeef1aa0f568124a1d.tar.bz2 fork-ledger-75b7294a6db10e7f7b18b6aeef1aa0f568124a1d.zip |
Rewrite the "print" command as a custom function
There ended up being too many corner cases for the generalized formatter
to handle.
Diffstat (limited to 'src/draft.cc')
-rw-r--r-- | src/draft.cc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/draft.cc b/src/draft.cc index 83a8012d..74e17dba 100644 --- a/src/draft.cc +++ b/src/draft.cc @@ -38,7 +38,7 @@ #include "journal.h" #include "session.h" #include "report.h" -#include "output.h" +#include "print.h" namespace ledger { @@ -520,10 +520,7 @@ value_t xact_command(call_scope_t& args) // Only consider actual postings for the "xact" command report.HANDLER(limit_).on(string("#xact"), "actual"); - report.xact_report(post_handler_ptr - (new format_posts(report, - report.HANDLER(print_format_).str())), - *new_xact); + report.xact_report(post_handler_ptr(new print_xacts(report)), *new_xact); return true; } |