Render one posting, on one or more lines, suitable for
print
output. Also returns the widths calculated for the account and amount
fields.
There will be an indented account name, plus one or more of status
flag, posting amount, balance assertion, same-line comment, next-line
comments.
If the posting's amount is implicit or if elideamount is true, no
amount is shown. If the posting's amount is explicit and
multi-commodity, multiple similar postings are shown, one for each
commodity, to help produce parseable journal syntax. Or if
onelineamounts is true, such amounts are shown on one line,
comma-separated (and the output will not be valid journal syntax).
If an amount is zero, any commodity symbol attached to it is shown
(and the corresponding commodity display style is used).
By default, 4 spaces (2 if there's a status flag) are shown between
account name and start of amount area, which is typically 12 chars
wide and contains a right-aligned amount (so 10-12 visible spaces
between account name and amount is typical). When given a list of
postings to be aligned with, the whitespace will be increased if
needed to match the posting with the longest account name. This is
used to align the amounts of a transaction's postings.