I should just sleep on these problems. This post (https://groups.google.com/forum/#!topic/ledger-cli/NRw9xi8EAes) details the bash error I was getting. The formatting command was mistakenly being sent to bash and using single quotes (and removing escape characters) fixed the issue. After that, it was fairly straightforward to make the report right justified, which nicely accommodated the long commodity names:
-F '%(justify(scrub(display_total), 45, 1, true, color)) %(!options.flat ? depth_spacer : "")%-(ansify_if(partial_account(options.flat), blue if color))\n%/%$1\n%/--------------------\n' On Wednesday, April 26, 2017 at 11:13:54 PM UTC-4, Marvo Lazer wrote: > > I've been unsuccessful in changing the format of the balance report. > Currently my issue is that I have commodities that have very long names, > causing the balance report to look badly aligned: > XXX.000 "VANGUARD FTSE CDA ALL ETF" > XXX.000 "VANGUARD US TOTAL MKT ETF" Cash > $X,096.77 RESP > $XXX.51 > XXX.000 "VANGUARD CDN AGG BND ETF" RRSP > $XX.26 > XXX.000 "VANGUARD CDN AGG BND ETF" John > $XXX.25 > XXX.000 "VANGUARD CDN AGG BND ETF" Sharon > $XXX.77 > > Cash, RESP, and RRSP should all line up, with John and Sharon being > subcategories of RRSP. Is it possible to increase the default right > alignment of the accounts, so that they can line up. > > I've tried playing with the --format option, but I don't get far. Even > when I copy and paste the default balance format, I get the error: "-bash: > !options.flat: event not found" > -- --- 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.
