Merge pull request #4271 from dotlambda/lstinline-ampersand
LaTeX writer: escape & in lstinline
This commit is contained in:
commit
24acb714c1
1 changed files with 1 additions and 1 deletions
|
@ -1015,7 +1015,7 @@ inlineToLaTeX (Code (_,classes,_) str) = do
|
|||
let chr = case "!\"&'()*,-./:;?@_" \\ str of
|
||||
(c:_) -> c
|
||||
[] -> '!'
|
||||
let str' = escapeStringUsing (backslashEscapes "\\{}%~_") str
|
||||
let str' = escapeStringUsing (backslashEscapes "\\{}%~_&") str
|
||||
-- we always put lstinline in a dummy 'passthrough' command
|
||||
-- (defined in the default template) so that we don't have
|
||||
-- to change the way we escape characters depending on whether
|
||||
|
|
Loading…
Reference in a new issue