LaTeX writer: Update \lstinline delimiters. (#4369)
Don't delimit \lstinline with characters that are normally escaped.
Follow-up to #4111, #4271.
commit9472811694e931fa9b5e5db1e82d755efdf3a3a3
authorTim Parenti <timparenti@users.noreply.github.com>
dateThu 26 Apr 2018, 15:41 (8 years ago)
parent1494b20
src/Text/Pandoc/Writers/LaTeX.hs+1−1
@@ -1036,7 +1036,7 @@ inlineToLaTeX (Code (_,classes,_) str) = do
10361036 Nothing -> ""
10371037 inNote <- gets stInNote
10381038 when inNote $ modify $ \s -> s{ stVerbInNote = True }
1039− let chr = case "!\"&'()*,-./:;?@_" \\ str of
1039+ let chr = case "!\"'()*,-./:;?@" \\ str of
10401040 (c:_) -> c
10411041 [] -> '!'
10421042 let str' = escapeStringUsing (backslashEscapes "\\{}%~_&") str