On 08/02/26 16:12, [email protected] wrote:
I may be wrong, but IIRC, there’s no way to do this through the API. @@ is not very well supported.
This is not true. `@@` is well supported.

However, it is treated as an input only syntax that is normalize upon parsing. Therefore, it is not expected to be represented as such in the data model that the built-in serialization supports.

I think this could be handled extending the serialization code. However, I see little chance for such a change to make it into beancount.

If you can live with using an external serialization library, you can look here https://github.com/dnicolodi/beangadgets/ It contains a version of `beancount.parser.printer` that supports writing the `@@` syntax (and other minor improvements). I use this code for my import scripts (I hope all the relevant local changes made it into the GitHub repository, please holler if it does not work as expected).

Cheers,
Dan

--
You received this message because you are subscribed to the Google Groups 
"Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/beancount/2ef598ec-3a62-4fa5-ae95-c9583e7b6b8a%40grinta.net.

Reply via email to