From 958a61ede5916f7c71245ab3f7c1c96bc1f6abe0 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 22 Dec 2010 15:34:06 -0500 Subject: New command: org, for displaying Org-mode tables --- src/report.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/report.cc') diff --git a/src/report.cc b/src/report.cc index 8af1a459..e98596a3 100644 --- a/src/report.cc +++ b/src/report.cc @@ -47,6 +47,7 @@ #include "convert.h" #include "xml.h" #include "emacs.h" +#include "org.h" namespace ledger { @@ -1430,6 +1431,15 @@ expr_t::ptr_op_t report_t::lookup(const symbol_t::kind_t kind, } break; + case 'o': + if (is_eq(p, "org")) { + return WRAP_FUNCTOR + (reporter<> + (new posts_to_org_table(*this, maybe_format(HANDLER(prepend_format_))), + *this, "#org")); + } + break; + case 'p': if (*(p + 1) == '\0' || is_eq(p, "print")) { return WRAP_FUNCTOR -- cgit v1.2.3