-
-
Notifications
You must be signed in to change notification settings - Fork 320
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[💰20$ bounty] Inconsistent alignment for currencies with long names #1148
Comments
Can you achieve anything useful with the --format option ? https://hledger.org/hledger.html#customising-the-classic-balance-report |
Ah, yes by slightly modifying the default format like Still, having |
I see.. yes, I agree the simple balance report should widen the amounts column automatically so that account names are aligned. |
Relevant code is near https://github.com/simonmichael/hledger/blob/master/hledger/Hledger/Cli/Commands/Balance.hs#L420, where it gets hard-coded to 20. |
Hi!
Situation
I am using
hledger
for inventory/asset management in my research project. It works great to keep track of where categories of things are and to a degree even for tracking individual objects (via identifying tags). The best solution for my application turned out to be quoted long currency names for types of things (better readability and searchability viacur:'.*keyword.*'
).Problem
However,
hledger balance
seems to have a hard-coded (minimum?) currency column width which works fine for short currencies (likeUSD
orEUR
) and otherwise calculate the currency indentation per-account. This leads to weird indentations and breaks the nice accounts tree view. I didn't find anything concerning this in the online documentation.Example
Cooked-up example journal
test.hledger
:I'd rather expect an output like this (all currencies indented like in the total summary):
Solution
For example:
The text was updated successfully, but these errors were encountered: