Skip to content

Commit 4e80772

Browse files
sbryngelsonclaude
andcommitted
Fix case mismatch in citation key lookup
Bib keys were lowercased during parsing but Doxygen HTML preserves original case, causing all author-prefix lookups to fail silently. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 56bff68 commit 4e80772

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/postprocess_citations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def parse_bib_authors(bib_path: Path) -> dict[str, tuple[str, int, str | None]]:
1616
"""Parse references.bib to extract first-author surname and author count.
1717
1818
Returns:
19-
Dict mapping lowercase bib key ->
19+
Dict mapping bib key ->
2020
(first_author_surname, author_count, second_author_surname | None)
2121
"""
2222
text = bib_path.read_text(encoding="utf-8")
@@ -49,7 +49,7 @@ def parse_bib_authors(bib_path: Path) -> dict[str, tuple[str, int, str | None]]:
4949
if count == 2:
5050
second_surname = _extract_surname(authors[1].strip())
5151

52-
entries[key.lower()] = (surname, count, second_surname)
52+
entries[key] = (surname, count, second_surname)
5353

5454
return entries
5555

0 commit comments

Comments
 (0)