Ok Thomas,

It works for me. But what these format %(code ? '('+code+')' : '')  stand for?

Thanks a lot.

On Sun, Aug 1, 2010 at 4:24 PM, Thomas Bikeev <[email protected]> wrote:
> Hello,
>
> format has changed in 3.0 - here is example of one of the formats that
> works for me
>
> --register-format \
>  "%(date) %(cleared ? '* ' : '')%(code ? '('+code+')' : '') %-.
> 35(payee)\n\
>  \t%-.38(account) %22.108(amount) %22.132(total)\n%/\
>  \t%-.38(account) %22.108(amount) %22.132(total)\n"
>
> Regards, Thomas
>
>
> On Aug 1, 9:14 pm, Leandro Henrique Oliveira Fernandes
> <[email protected]> wrote:
>> Hi,
>>
>> I am trying to use the option  --register-format.
>>
>> --register-format "%-{display_amount}\n" reg Real
>>
>> While parsing value expression:
>>   display_amount}
>>
>> Error: Unexpected expression token '}'
>>
>>
>>
>> PS:   ledger version is 3.0.0-20100615
>>
>> Thanks

Reply via email to