From 4e8077293d02279e926c2f452cf409f72d50c68a Mon Sep 17 00:00:00 2001 From: Spencer Bryngelson Date: Thu, 12 Feb 2026 23:20:18 -0500 Subject: [PATCH] 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 --- docs/postprocess_citations.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/postprocess_citations.py b/docs/postprocess_citations.py index a5c19df5c3..8286d8b2c9 100644 --- a/docs/postprocess_citations.py +++ b/docs/postprocess_citations.py @@ -16,7 +16,7 @@ def parse_bib_authors(bib_path: Path) -> dict[str, tuple[str, int, str | None]]: """Parse references.bib to extract first-author surname and author count. Returns: - Dict mapping lowercase bib key -> + Dict mapping bib key -> (first_author_surname, author_count, second_author_surname | None) """ 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]]: if count == 2: second_surname = _extract_surname(authors[1].strip()) - entries[key.lower()] = (surname, count, second_surname) + entries[key] = (surname, count, second_surname) return entries