beancount / ledger2beancount

Ledger to Beancount text-based converter
GNU General Public License v3.0
84 stars 14 forks source link

Price directives with comments #198

Closed xuhcc closed 4 years ago

xuhcc commented 4 years ago

ledger2beancount 2.3 fails to parse price directives with comments in ledger file:

P 2019/05/31 DASH 161.04 USD    ; CoinMarketCap #14

The parser now throws an error:

Unknown rest ; CoinMarketCap #14 in price directive: 2019-05-31 price DASH 161.04 USD at /usr/bin/ledger2beancount line 1414.

If I remove the comments everything works fine.

tbm commented 4 years ago

Right, that should of course be allowed. That's an unfortunate regression. Thanks for pointing it out!