aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-10-25 12:42:41 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2015-10-25 12:42:41 -0700
commit89d399b6b1c6d424f1cad862b8e38be8c414cda9 (patch)
tree2872b78bf0fe2ab13c784e49d8880c0f42a074da
parent7d4f1740479bdf7be444c0f5807447508065ad31 (diff)
parentf3f64835101dc2e9ae32f4d544dbccca02c3a8a0 (diff)
downloadpandoc-89d399b6b1c6d424f1cad862b8e38be8c414cda9.tar.gz
Merge pull request #2481 from mb21/textarabic
LaTeX writer: \textarabic fix
-rw-r--r--src/Text/Pandoc/Writers/LaTeX.hs2
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)