git.iko.soy/typeable/pandoc
on master help sign in
Distinguish between single and double quotes when using enquote package (#6457)
commita0559d952bc36ed5ed0693fcde15e6bd59dcf5e7 authordbecher-ito <david.becher@it-objects.de> dateSun 14 Jun 2020, 19:02 (6 years ago) parent16889a0
1 file changed+3−1
src/Text/Pandoc/Writers/LaTeX.hs+3−1
src/Text/Pandoc/Writers/LaTeX.hs+3−1
@@ -1234,7 +1234,9 @@ inlineToLaTeX (Quoted qt lst) = do
12341234 csquotes <- liftM stCsquotes get
12351235 opts <- gets stOptions
12361236 if csquotes
1237− then return $ "\\enquote" <> braces contents
1237+ then return $ case qt of
1238+ DoubleQuote -> "\\enquote" <> braces contents
1239+ SingleQuote -> "\\enquote*" <> braces contents
12381240 else do
12391241 let s1 = if not (null lst) && isQuoted (head lst)
12401242 then "\\,"