I've had a similar problem and added the following to my .ledgerrc
--balance-format %(justify(scrub(display_total), 20, -1, true, color)) %(!options.flat ? depth_spacer : '')%-(ansify_if(partial_account(options.flat), cyan if color))\n%/%$1\n%/--------------------\n
The only difference here is that I print out the value of each account before the name of each account (I did this because I have some long account names). You could probably start with this and edit it to suit your needs. The justify command is how I align the display_total values printed to the terminal. Also, if you don't like the cyan color feel free to swap it with any other terminal text color (I used cyan because the default dark blue text for the account names doesn't provide enough contrast on a black terminal).