aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers
diff options
context:
space:
mode:
authorRobert Schütz <robert.schuetz@stud.uni-heidelberg.de>2018-01-16 16:34:39 +0100
committerRobert Schütz <robert.schuetz@stud.uni-heidelberg.de>2018-01-16 16:34:39 +0100
commitb2268b1fc743904903cec5e1a78bc1fe10ed62b5 (patch)
treea39c4c768a440a61c1503a2bdf4bc8db297fc62a /src/Text/Pandoc/Writers
parent551d8e8541cd056a2c8c81095e98e01bca4436d6 (diff)
downloadpandoc-b2268b1fc743904903cec5e1a78bc1fe10ed62b5.tar.gz
LaTeX writer: escape & in lstinline
Diffstat (limited to 'src/Text/Pandoc/Writers')
-rw-r--r--src/Text/Pandoc/Writers/LaTeX.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/LaTeX.hs b/src/Text/Pandoc/Writers/LaTeX.hs
index 49b39f014..de2cc3480 100644
--- a/src/Text/Pandoc/Writers/LaTeX.hs
+++ b/src/Text/Pandoc/Writers/LaTeX.hs
@@ -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