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

Preserve comments when exporting to ledger #4

Open
blais opened this issue May 6, 2019 · 3 comments
Open

Preserve comments when exporting to ledger #4

blais opened this issue May 6, 2019 · 3 comments

Comments

@blais
Copy link
Member

blais commented May 6, 2019

Original report by Alen Šiljak (Bitbucket: Alen Siljak, GitHub: MisterY).


bean-report ledger seems a good option to export/convert to ledger format directly. It would be useful to keep as much information as possible.

Since account directives store less information than in ledger format, it would be useful to preserve comments.

I.e. The account description, number, contact details, URLs, and other metadata may be stored in comments next to the account.

@tbm
Copy link
Collaborator

tbm commented Jul 17, 2020

Can you move this ticket to https://github.com/beancount/beancount2ledger

There should be a link "Transfer issue" in the lower right corner (there's an arrow to the right).

@tbm
Copy link
Collaborator

tbm commented Jul 17, 2020

@mistery unfortunately I don't think that's possible because the beancount data structures don't actually contain the comments.

So instead of using beancount to parse the file, we'd have to write our own parser.

@blais will v3 store comments somehow in its data structure?

@blais blais transferred this issue from beancount/beancount Jul 17, 2020
@blais
Copy link
Member Author

blais commented Jul 17, 2020

I don't think so.
Comments are comments and stripped by the parser.
You can move the notes to metadata.

I'll think about if more generally we might want a comment syntax that converts to a field on transactions and postings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants