summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGwyneth Morgan <gwymor@tilde.club>2023-09-06 02:45:48 +0000
committerJohn Wiegley <johnw@newartisans.com>2024-07-10 09:39:17 -0700
commit858a1b2fad41f968d5d8d3470629c0cbb20562b8 (patch)
treeed7f402632c1d49778ea5d1648628a4696d91f50 /lib
parent92db49d2e0d649c31b93be1e0cd0b5cde5ce57d8 (diff)
downloadfork-ledger-858a1b2fad41f968d5d8d3470629c0cbb20562b8.tar.gz
fork-ledger-858a1b2fad41f968d5d8d3470629c0cbb20562b8.tar.bz2
fork-ledger-858a1b2fad41f968d5d8d3470629c0cbb20562b8.zip
print: Align amounts even when account names are long
When the account name is longer than the --account-width (default 36), the amounts stop aligning: 2023/01/01 Transaction with long account names Assets:Very:Long:Account:Name:That:Will:Push:The:Amount -10 ABC Assets:Another:Long:Account:Name:That:Will:Push:The:Amount -10 ABC Expenses:Short 20 ABC One can set a larger --account-width, but that is not a great solution for cases where you have only a few accounts with problematically long names. Instead, keep the current account width wherever possible, but when an account name is longer than the account width, account for that and still align the values: 2023/01/01 Transaction with short account names Assets:Short -10 ABC Assets:Short -10 ABC Expenses:Short 20 ABC 2023/01/01 Transaction with long account names Assets:Very:Long:Account:Name:That:Will:Push:The:Amount -10 ABC Assets:Another:Long:Account:Name:That:Will:Push:The:Amount -10 ABC Expenses:Short 20 ABC This is similar to hledger's behavior.
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions