dmitry-merzlyakov / nledger

.Net Ledger: Double-Entry Accounting System
Other
181 stars 51 forks source link

Tags are duplicated when printing #24

Closed aaubry closed 9 months ago

aaubry commented 2 years ago

Parsing a file with tags and printing it causes the tags to be duplicated. For example, the command NLedger-cli.exe -f test.ledger print where test.ledger contains this:

2022/01/30 * stuff  ;Misc
    ; UUID: 0292006581600/20220130/0
    Expenses:Unknown                         123 €
    Assets:Wallet

produces the following output:

2022/01/30 * stuff
    ;Misc
    ; UUID: 0292006581600/20220130/0
    ; UUID: 0292006581600/20220130/0
    Expenses:Unknown                           123 €
    Assets:Wallet

The original ledger application produces the correct output:

2022/01/30 * stuff
    ;Misc
    ; UUID: 0292006581600/20220130/0
    Expenses:Unknown                           123 €
    Assets:Wallet
dmitry-merzlyakov commented 2 years ago

Hi @aaubry, thank you for letting me know. I will take a look at it in a couple of days and update this ticket, thanks