aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2025-04-07 08:52:13 -0700
committerJohn MacFarlane <[email protected]>2025-04-07 08:53:18 -0700
commit109d13d143fdfc33b9b13f8fc1be2f65f8f35ec0 (patch)
tree4f680cdf0f5f7ff21d703557a22d4a92a62df284
parentaf57648e58d2babe17dbc30935a1b1f8c888f083 (diff)
Recognize `en` as a `langid` in biblatex bibliographies.
Closes #10764.
-rw-r--r--src/Text/Pandoc/Citeproc/BibTeX.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Citeproc/BibTeX.hs b/src/Text/Pandoc/Citeproc/BibTeX.hs
index bf4a75cff..a5c0e8da3 100644
--- a/src/Text/Pandoc/Citeproc/BibTeX.hs
+++ b/src/Text/Pandoc/Citeproc/BibTeX.hs
@@ -394,7 +394,8 @@ itemToReference locale variant item = do
<|> return Nothing
modify $ \s -> s{ untitlecase = untitlecase s &&
case hyphenation of
- Just x -> "en-" `T.isPrefixOf` x
+ Just x ->
+ "en-" `T.isPrefixOf` x || x == "en"
_ -> True }