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

When an entry is added at the beginning of the .bib file, there are no newlines appended #114

Closed
koppor opened this issue Dec 14, 2015 · 4 comments

Comments

@koppor
Copy link
Member

koppor commented Dec 14, 2015

grabbed_20151214-110539

@lenhard
Copy link
Member

lenhard commented Dec 14, 2015

We decided to always add new entries to the bottom of the file. Once this is implemented, also that problem should disappear.

@lenhard
Copy link
Member

lenhard commented Dec 14, 2015

I implemented a small tweak to the serialization in 10cce52 The newlines between the file header and the first entry are now stored as part of the parsed serialization of the first entry. This fixes this issue (works for me, please double-check).

However, this means that the newline between the first entry and the preamble "move", together with the first entry. So if you have five newlines between the first entry and the preamble and resort the file, the five newlines move together with the first entry. From my point of view, this is a feature, not a bug 😄

@tobiasdiez
Copy link
Member

I think this is solved.

@lenhard
Copy link
Member

lenhard commented Mar 6, 2016

Agreed.

@lenhard lenhard closed this as completed Mar 6, 2016
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

3 participants