It's possible there's a bug. The newer implementation I had started in C++ was better in that way. I think when I restart this I should make the output of the parser contain even the comments and be able to be edited and used to regenerate the file, and the output of the interpolation and booking (which runs on that data structure) will be a distinct data structure with no syntax whatsoever. This will be better defined. Right now it's just using this set of Python objects that are the same between the parser's output and the final output, with different sets of guarantees... that's not great.
On Sun, Aug 18, 2024 at 3:26 PM Chary Chary <[email protected]> wrote: > Martin, > > correct me if I am wrong, but I think the beancount's *pad *directive > conflicts with the *Round-Tripping guarantee*, the way it is described > here: > > https://docs.google.com/document/d/1QftxNvQPdH-MikMBHupftU6F4IsNZP5FlFh1LCbVgk8/edit#heading=h.qs8b7mcsjj82 > > *In particular, Beancount offers the guarantee that the output of the > printer should always be parseable and should result in the same data > structure when read back in. (It should be considered a bug if that is not > the case.)* > > I think it may be worth mentioning this in the documentation > > -- > 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 on the web visit > https://groups.google.com/d/msgid/beancount/0873ad88-48d7-4694-b7cf-3317599b3b9bn%40googlegroups.com > <https://groups.google.com/d/msgid/beancount/0873ad88-48d7-4694-b7cf-3317599b3b9bn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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 on the web visit https://groups.google.com/d/msgid/beancount/CAK21%2BhN127vz5y03ejeKvBWGKf-ma2Tagjw%2B6xpQnRwDnix6GQ%40mail.gmail.com.
