Skip to content

Commit cf955e9

Browse files
authored
LaTeX writer: fix fr-CA babel language mapping (#11576)
Map fr-CA to "french" instead of deprecated "canadien". The babel-french package's `canadien.ldf` is deprecated and broken: it never calls `\ldf@finish`, so `\bbl@main@language` is left undefined, causing babel to crash at `\begin{document}`. Since `canadien` was always just an unconditional alias for `french`, use `french` directly. Closes #11575.
1 parent df29187 commit cf955e9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/Text/Pandoc/Writers/LaTeX

src/Text/Pandoc/Writers/LaTeX/Lang.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ toBabel (Lang "en" _ (Just "GB") _ _ _) = Just "british"
4040
toBabel (Lang "en" _ (Just "NZ") _ _ _) = Just "newzealand"
4141
toBabel (Lang "en" _ (Just "UK") _ _ _) = Just "british"
4242
toBabel (Lang "en" _ (Just "US") _ _ _) = Just "american"
43-
toBabel (Lang "fr" _ (Just "CA") _ _ _) = Just "canadien"
43+
toBabel (Lang "fr" _ (Just "CA") _ _ _) = Just "french"
4444
toBabel (Lang "fra" _ _ vars _ _)
4545
| "aca" `elem` vars = Just "acadian"
4646
toBabel (Lang "grc" _ _ _ _ _) = Just "ancientgreek"

0 commit comments

Comments
 (0)