summaryrefslogtreecommitdiff
path: root/src/Text/Pandoc
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2016-04-26 23:09:02 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2016-04-26 23:09:02 -0700
commitece215ed7dc2e0a9d9b068fa309c4822cd73f655 (patch)
treea2d669152e00ac93670099c7c82ad4601ad7b932 /src/Text/Pandoc
parentcc0527bf31762bfe7cfe226c018d721b7aeb13cb (diff)
parent44f95484a4b4544ef41dab087af92a80fc5996cd (diff)
Merge pull request #2735 from mb21/patch-1
LaTeX Writer: fix polyglossia to babel env mapping
Diffstat (limited to 'src/Text/Pandoc')
-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 bb588dbe5..948bbedaa 100644
--- a/src/Text/Pandoc/Writers/LaTeX.hs
+++ b/src/Text/Pandoc/Writers/LaTeX.hs
@@ -223,7 +223,7 @@ pandocToLaTeX options (Pandoc meta blocks) = do
++ poly ++ "}{##2}}}\n"
else "\\newcommand{\\text" ++ poly ++ "}[2][]{\\foreignlanguage{"
++ babel ++ "}{#2}}\n" ++
- "\\newenvironment{" ++ poly ++ "}[1]{\\begin{otherlanguage}{"
+ "\\newenvironment{" ++ poly ++ "}[2][]{\\begin{otherlanguage}{"
++ babel ++ "}}{\\end{otherlanguage}}\n"
)
-- eliminate duplicates that have same polyglossia name