Append DOI fields to project bibliography entries

.format_bib_entry ignored the doi field, so the arXiv first reference lost its
doi:10.1109/... suffix. Append doi:<value> when present and extend the server
bib test fixture/assertions.

Test count stays 1078.
This commit is contained in:
gloamxun committed 2026-10-28 00:54:05 +08:00
1 parent eb2cb561bd
commit 1b0f4c8ab3
3 files changed
+7 -2

No files matched your search

+4
View File
@@ -1471,6 +1471,10 @@ fn format_bib_entry(fields: &[(String, String)]) -> Option<String> {
entry.push_str(", ");
entry.push_str(publisher);
}
if let Some(doi) = field("doi") {
entry.push_str(". doi:");
entry.push_str(doi);
}
Some(entry)
}