summaryrefslogtreecommitdiff
path: root/src/session.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-08-10 03:49:03 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-08-10 03:49:03 -0400
commitace4b65487c08137c832979052236ee424448afa (patch)
tree2ac4854638d9ff17dd65d85a3399aab9cd94ac06 /src/session.cc
parent548a03e725752d2a61a76fb3d3ebb736f88c0afa (diff)
downloadfork-ledger-ace4b65487c08137c832979052236ee424448afa.tar.gz
fork-ledger-ace4b65487c08137c832979052236ee424448afa.tar.bz2
fork-ledger-ace4b65487c08137c832979052236ee424448afa.zip
The register report is now mostly displaying multi-line balances correctly.
It still shows lots even when --lots isn't specified, though.
Diffstat (limited to 'src/session.cc')
-rw-r--r--src/session.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/session.cc b/src/session.cc
index f634c855..fea379d6 100644
--- a/src/session.cc
+++ b/src/session.cc
@@ -71,8 +71,10 @@ void release_session_context()
session_t::session_t()
: register_format
- ("%-.10D %-.20P %-.22A %12.67t %!12.80T\n%/"
- "%32|%-.22A %12.67t %!12.80T\n"),
+ ("%-.10D %-.20P %-.22A %!12(print_balance(fmt_t, 12, 67)) "
+ "%!12(print_balance(fmt_T, 12, 80, true))\n%/"
+ "%32|%-.22A %!12(print_balance(fmt_t, 12, 67)) "
+ "%!12(print_balance(fmt_T, 12, 80, true))\n"),
wide_register_format
("%-.10D %-.35P %-.38A %22.108t %!22.132T\n%/"
"%48|%-.38A %22.108t %!22.132T\n"),