diff options
Diffstat (limited to 'src/Text/Pandoc/Writers')
-rw-r--r-- | src/Text/Pandoc/Writers/LaTeX.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/LaTeX.hs b/src/Text/Pandoc/Writers/LaTeX.hs index b31497a22..979ed547b 100644 --- a/src/Text/Pandoc/Writers/LaTeX.hs +++ b/src/Text/Pandoc/Writers/LaTeX.hs @@ -800,7 +800,7 @@ inlineToLaTeX (Span (id',classes,kvs) ils) = do (if rtl then inCmd "RL" else id) . (if ltr then inCmd "LR" else id) . (case lookup "lang" kvs of - Just lng -> let (l, o) = toPolyglossiaEnv lng + Just lng -> let (l, o) = toPolyglossia $ splitBy (=='-') lng ops = if null o then "" else brackets (text o) in \c -> char '\\' <> "text" <> text l <> ops <> braces c Nothing -> id) |