LaTeX writer: Update \lstinline delimiters. (#4369)
Don't delimit \lstinline with characters that are normally escaped. Follow-up to #4111, #4271.
This commit is contained in:
parent
1494b20bb4
commit
9472811694
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue