git.iko.soy/typeable/pandoc
on master help sign in
Merge pull request #2481 from mb21/textarabic

LaTeX writer: \textarabic fix

commit89d399b6b1c6d424f1cad862b8e38be8c414cda9 authorJohn MacFarlane <jgm@berkeley.edu> dateSun 25 Oct 2015, 12:42 (11 years ago) parent7d4f174f3f6483
1 file changed+1−1
src/Text/Pandoc/Writers/LaTeX.hs+1−1
src/Text/Pandoc/Writers/LaTeX.hs+1−1
@@ -800,7 +800,7 @@ inlineToLaTeX (Span (id',classes,kvs) ils) = do
800800 (if rtl then inCmd "RL" else id) .
801801 (if ltr then inCmd "LR" else id) .
802802 (case lookup "lang" kvs of
803− Just lng -> let (l, o) = toPolyglossiaEnv lng
803+ Just lng -> let (l, o) = toPolyglossia $ splitBy (=='-') lng
804804 ops = if null o then "" else brackets (text o)
805805 in \c -> char '\\' <> "text" <> text l <> ops <> braces c
806806 Nothing -> id)