Skip to content

Commit

Permalink
Distinguish between single and double quotes when using enquote packa…
Browse files Browse the repository at this point in the history
…ge (#6457)
  • Loading branch information
dbecher-ito authored Jun 14, 2020
1 parent 16889a0 commit a0559d9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Text/Pandoc/Writers/LaTeX.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1234,7 +1234,9 @@ inlineToLaTeX (Quoted qt lst) = do
csquotes <- liftM stCsquotes get
opts <- gets stOptions
if csquotes
then return $ "\\enquote" <> braces contents
then return $ case qt of
DoubleQuote -> "\\enquote" <> braces contents
SingleQuote -> "\\enquote*" <> braces contents
else do
let s1 = if not (null lst) && isQuoted (head lst)
then "\\,"
Expand Down

0 comments on commit a0559d9

Please sign in to comment.