>>>>> kinleyd <[email protected]> writes:
> I've been through the ledger3 manual as well as googled as best I could, but I
> find ledger's formatting approach is not very well described or illustratated
> with examples. Or, it's right there in plain sight and I'm missing it.
> For example, how do I get comma formatted numbers? How does one set an
> option like --balance-format to do this?
You actually don't have any control over how numbers are formatted from within
a format statement! I just never thought of that, although it would not be
hard at all to add.
Rather, Ledger pays attention to how you USE a currency, like $, and tries to
echo back amounts to you in the same way that it saw you use them. The "D"
directive (for (d)efault settings), allows you to specify the "shape" amounts
should generally take, like:
D $1,000.00
At the moment that is the best I can offer, although having a formatting
function like "format_amount" would be both fairly easy to do, and a good
idea.
John
--
---
You received this message because you are subscribed to the Google Groups
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.