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
BibTeX: load_data fails on non-numeric values in the "month" field #2367
Comments
Just saw that you are using charlesvdv/nom-bibtex under the hood. Please let me know if I should re-open this issue over there. :) |
Another workaround, instead of manually adjusting the bibliographies, adding the following to the top of the BibTeX file will also work: @string (jan="1")
@string (feb="2")
@string (mar="3")
@string (apr="4")
@string (may="5")
@string (jun="6")
@string (jul="7")
@string (aug="8")
@string (sep="9")
@string (oct="10")
@string (nov="11")
@string (dec="12") |
Upstream is definitely better |
I opened an issue upstream: charlesvdv/nom-bibtex#26 |
Let's close but do comment here if it gets resolved |
Bug Report
When loading a BibTeX file that has a non-numeric
month
field, the parsing fails.Here is a BibTeX as provided by the IETF for an RFC (https://datatracker.ietf.org/doc/rfc6749/bibtex/)
Using this BibTeX will lead to the build failing. My current workaround is to manually change
the month to its numerical representation (i.e.
month = 10
instead ofmonth = oct
).Environment
Zola version:
0.17.2
Expected Behavior
The
month
field should be parsable, even if it is a three letter abbreviation, which seems to be somewhat common practice.Current Behavior
Build fails with the following error.
Step to reproduce
Create a file
references.bib
:Attempt to load the file in a template:
The text was updated successfully, but these errors were encountered: