Just following up on this ....

On Tue, 04 Sep 2012, John Wiegley wrote:
>>>>>> Bradley M Kuhn writes:
>
>> I am confused why %D and %[] don't work in the --format here:
>
> Ledger 3 doesn't use one-letter format characters, or %[] anymore.  It 
uses
> the more universal %(valexpr) syntax.  For example, %(date).

One of my standard reports includes this format string:

-F '%10(date) %6(code) %-.40(payee) %14(amount) %14(display_total)\n'

When I first started using this string, I'm quite sure but not absolutely
certain that the %(code) entry produced the check number when present, but
nothing at all for entries with no check number. However, after a recent
update, the entry produces a check number when present, but "(null)" for
entries with no check number.

Ledger 3.0.0-20120518

-- 
John Rakestraw

Reply via email to