ledger -F '%(scrub(display_total) < 0 ? ansify_if(justify("(" + to_string(abs(scrub(display_total))) + ")", 20, 20 + prepend_width, true, false), red) : justify(scrub(display_total), 20, 20 + prepend_width, true, color)) %(!options.flat ? depth_spacer : "")%-(ansify_if(partial_account(options.flat), blue if color))\n%/%$1\n%/--------------------\n' bal
However, this *still* won't change the formatting of amounts within multi-commodity balances.
To implement the kind of report you're thinking of, you'd need to use Python.
John
On Jun 13, 2010, at 9:31 AM, ed wrote:
> This is partly there