From 9472811694e931fa9b5e5db1e82d755efdf3a3a3 Mon Sep 17 00:00:00 2001 From: Tim Parenti Date: Thu, 26 Apr 2018 15:41:15 -0400 Subject: LaTeX writer: Update \lstinline delimiters. (#4369) Don't delimit \lstinline with characters that are normally escaped. Follow-up to #4111, #4271. --- src/Text/Pandoc/Writers/LaTeX.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Text/Pandoc') diff --git a/src/Text/Pandoc/Writers/LaTeX.hs b/src/Text/Pandoc/Writers/LaTeX.hs index d9868b7cd..2904bec06 100644 --- a/src/Text/Pandoc/Writers/LaTeX.hs +++ b/src/Text/Pandoc/Writers/LaTeX.hs @@ -1036,7 +1036,7 @@ inlineToLaTeX (Code (_,classes,_) str) = do Nothing -> "" inNote <- gets stInNote when inNote $ modify $ \s -> s{ stVerbInNote = True } - let chr = case "!\"&'()*,-./:;?@_" \\ str of + let chr = case "!\"'()*,-./:;?@" \\ str of (c:_) -> c [] -> '!' let str' = escapeStringUsing (backslashEscapes "\\{}%~_&") str -- cgit v1.2.3