Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support (or ignore) ledger lot notes #1407

Open
MarinBernard opened this issue Nov 29, 2020 · 0 comments
Open

Support (or ignore) ledger lot notes #1407

MarinBernard opened this issue Nov 29, 2020 · 0 comments
Labels
A-WISH Some kind of improvement request, hare-brained proposal, or plea. journal The journal file format, and its features.

Comments

@MarinBernard
Copy link

Hi,

While recent hledger versions shipped with sensible improvements regarding the syntax of ledger lots, hledger 1.19.1 still fails when if meets ledger lot notes.

If supporting lot notes is too much work, would it still be possible to at least tell the parser to ignore them ? This would make hledger usable with my journal files.

Thanks!

Example

Journal file

06-29=06-29 * Thing
    A:B:C:Things           1 "XXX" (some_arbitrary_string) @ 333.99 EUR
    A:B:X:Y                                                 -333.99 EUR

hledger output:

hledger: in file included from /home/marin/accounting/main.hledger,
in file included from /home/marin/accounting/2018/main.ledger,
/home/marin/accounting/2018/06.ledger:13:44:
   |
13 |     A:B:C:Things           1 "XXX" (some_arbitrary_string) @ 333.99 EUR
   |                                     ^
unexpected 's'
expecting '@'
@MarinBernard MarinBernard added the A-WISH Some kind of improvement request, hare-brained proposal, or plea. label Nov 29, 2020
@MarinBernard MarinBernard changed the title Support or ignore ledger ledger lot notes Support (or ignore) ledger lot notes Nov 29, 2020
@simonmichael simonmichael added the journal The journal file format, and its features. label Dec 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-WISH Some kind of improvement request, hare-brained proposal, or plea. journal The journal file format, and its features.
Projects
None yet
Development

No branches or pull requests

2 participants