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

@string definitions bleed into following entry #32

Open
goerz opened this issue Mar 6, 2023 · 2 comments
Open

@string definitions bleed into following entry #32

goerz opened this issue Mar 6, 2023 · 2 comments

Comments

@goerz
Copy link

goerz commented Mar 6, 2023

In a bib file that has @string definitions at the top, the last string definition seems to bleed into the first bib entry. Consider broken.bib:

@string{zp = "Z. Phys."}

@mastersthesis{GoerzDiploma2010,
    Author = {Goerz, Michael},
    Title = {Optimization of a Controlled Phasegate for Ultracold Calcium Atoms in an Optical Lattice},
    School = {Freie Universität Berlin},
    type = {{Diplomarbeit}},
    url = {http://michaelgoerz.net/research/diploma_thesis.pdf},
    Year = {2010},
}

Here, parsing the file gets Z. Phys. inserted into the author last name:

julia> parse_file("./broken.bib")["GoerzDiploma2010"].authors[1]
BibInternal.Name("", "Z. Phys.Goerz", "", "Michael", "")

I'm guessing some parsing string buffer isn't being cleared.

@goerz
Copy link
Author

goerz commented Mar 6, 2023

A workaround is to add @string{XXXclearparser = ""} as the last string definition

@goerz
Copy link
Author

goerz commented Mar 6, 2023

Maybe this is the same bug as #28

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

1 participant