summaryrefslogtreecommitdiff
path: root/src/report.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-15 23:00:16 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-15 23:00:16 -0400
commit8c2a70e1979377660ab0b88d0161b4b7f5be62f0 (patch)
treeb7e9a20e9802b90da1d674ee3d356ceb42ec2e84 /src/report.h
parent14ffc2b31a38a7fdd25bd93fe21d17132b16062a (diff)
downloadledger-8c2a70e1979377660ab0b88d0161b4b7f5be62f0.tar.gz
ledger-8c2a70e1979377660ab0b88d0161b4b7f5be62f0.tar.bz2
ledger-8c2a70e1979377660ab0b88d0161b4b7f5be62f0.zip
Made several of the filters more context aware
This resolves certain issues where value expressions were not being looked up within their full context.
Diffstat (limited to 'src/report.h')
-rw-r--r--src/report.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/report.h b/src/report.h
index cb89f965..809d0f5b 100644
--- a/src/report.h
+++ b/src/report.h
@@ -250,8 +250,9 @@ public:
OPTION(report_t, code_as_payee);
OPTION_(report_t, collapse, DO() { // -n
- // Make sure that balance reports are collapsed too
- parent->HANDLER(display_).append("depth<=1");
+ // Make sure that balance reports are collapsed too, but only apply it
+ // to account entries
+ parent->HANDLER(display_).append("xact|depth<=1");
});
OPTION_(report_t, collapse_if_zero, DO() {