summaryrefslogtreecommitdiff
path: root/src/report.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-12-22 15:34:06 -0500
committerJohn Wiegley <johnw@newartisans.com>2010-12-22 15:34:06 -0500
commit958a61ede5916f7c71245ab3f7c1c96bc1f6abe0 (patch)
tree532a60ef9734970016a13ba97d90a402c2b7b0de /src/report.cc
parentdafe7c891af6e6c65a96c17ffe078adf124cc895 (diff)
downloadfork-ledger-958a61ede5916f7c71245ab3f7c1c96bc1f6abe0.tar.gz
fork-ledger-958a61ede5916f7c71245ab3f7c1c96bc1f6abe0.tar.bz2
fork-ledger-958a61ede5916f7c71245ab3f7c1c96bc1f6abe0.zip
New command: org, for displaying Org-mode tables
Diffstat (limited to 'src/report.cc')
-rw-r--r--src/report.cc10
1 files changed, 10 insertions, 0 deletions
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