summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorGerhard Poul <gerhard.poul@gmail.com>2016-01-16 22:54:07 +0100
committerGerhard Poul <gerhard.poul@gmail.com>2016-01-16 22:54:07 +0100
commit13c47bcaa992c694e874341349719fdb30b36518 (patch)
treeac4f4e03e1ae8dc96fa45b50309b98232f4ea08c /doc
parent443b12921e1adb86ef9abc6ad380d12570e31f27 (diff)
downloadfork-ledger-13c47bcaa992c694e874341349719fdb30b36518.tar.gz
fork-ledger-13c47bcaa992c694e874341349719fdb30b36518.tar.bz2
fork-ledger-13c47bcaa992c694e874341349719fdb30b36518.zip
Fix doc for budget-format default
Diffstat (limited to 'doc')
-rw-r--r--doc/ledger3.texi22
1 files changed, 18 insertions, 4 deletions
diff --git a/doc/ledger3.texi b/doc/ledger3.texi
index 5e266253..961cdf9e 100644
--- a/doc/ledger3.texi
+++ b/doc/ledger3.texi
@@ -6234,11 +6234,25 @@ Specify the format to use for the @command{budget} report (@pxref{Format
Strings}). The default is:
@smallexample
-"%(justify(scrub(display_total), 20, -1, true, color))"
+"%(justify(scrub(get_at(display_total, 0)), 12, -1, true, color))"
+" %(justify(-scrub(get_at(display_total, 1)), 12, "
+" 12 + 1 + 12, true, color))"
+" %(justify(scrub(get_at(display_total, 1) + "
+" get_at(display_total, 0)), 12, "
+" 12 + 1 + 12 + 1 + 12, true, color))"
+" %(ansify_if("
+" justify((get_at(display_total, 1) ? "
+" (100% * quantity(scrub(get_at(display_total, 0)))) / "
+" -quantity(scrub(get_at(display_total, 1))) : 0), "
+" 5, -1, true, false),"
+" magenta if (color and get_at(display_total, 1) and "
+" (abs(quantity(scrub(get_at(display_total, 0))) / "
+" quantity(scrub(get_at(display_total, 1)))) >= 1))))"
" %(!options.flat ? depth_spacer : \"\")"
-"%-(ansify_if(partial_account(options.flat), blue if color))\n%/"
-"%$1\n%/"
-"--------------------\n"
+"%-(ansify_if(partial_account(options.flat), blue if color))\n"
+"%/%$1 %$2 %$3 %$4\n%/"
+"%(prepend_width ? \" \" * int(prepend_width) : \"\")"
+"------------ ------------ ------------ -----\n"
@end smallexample
@item --by-payee