Skip to content

馃摑 Note field key case change in migration guide - #634

Merged
MiWeiss merged 1 commit into
mainfrom
docs/629-field-key-case
Oct 5, 2026
Merged

MiWeiss merged 1 commit into
mainfrom
docs/629-field-key-case

Conversation

@MiWeiss

@MiWeiss MiWeiss commented Oct 5, 2026

Copy link
Copy Markdown
Collaborator

As reported in #629 (comment), v1 lowercased all field keys, while v2 keeps them as written (Title stays Title, so entry["title"] raises KeyError). The migration guide didn't mention this.

Adds a note to "Accessing the library" showing how to get v1 behavior:

library = bibtexparser.parse_file('bibtex.bib', append_middleware=[NormalizeFieldKeys()])

Snippet verified locally; docs build not run (Sphinx not installed here).

Refs #629

v1 lowercased all field keys, v2 keeps them as written in the .bib file.
Show how to get v1 behavior with the NormalizeFieldKeys middleware.

Refs #629
@MiWeiss
MiWeiss merged commit af329ca into main Oct 5, 2026
7 of 17 checks passed
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

Successfully merging this pull request may close these issues.

1 participant