justify: 5th argument is boolean according to docs. Why do examples use "color"?

18 views
Skip to first unread message

Keith David Bershatsky

unread,
Dec 20, 2020, 9:43:42 PM12/20/20
to Ledger
I am doing some customizing of the formats for a few reports and came across examples that use the word `color` for the 5th argument in justify.  The doc-string states:  "If colorize is true, then ledger will honor color settings."  Why do some of the examples use the word `color` instead of true or false, and what is the value of `color`?  E.g.,

--balance-format FORMAT_STRING

Specify the format to use for the balance report (see Format Strings). The default is:

"%(justify(scrub(display_total), 20, -1, true, color))" " %(!options.flat ? depth_spacer : \"\")" "%-(ansify_if(partial_account(options.flat), blue if color))\n%/" "%$1\n%/" "--------------------\n" 
Reply all
Reply to author
Forward
0 new messages