aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2019-01-25 16:49:31 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2019-01-25 16:49:31 -0800
commit2e7cfe1bbaa522fda0f79ecc6e5fb4ea3653f2d6 (patch)
tree48ac73ca4882924cc81bd65587870731c64843e1 /src/Text/Pandoc/Writers
parent7ccaa77797cc03c64cee4437f02aef468d9d5678 (diff)
downloadpandoc-2e7cfe1bbaa522fda0f79ecc6e5fb4ea3653f2d6.tar.gz
LaTeX writer: add `#` special characeters for listings.
This character needs special handling in lstinline. Closes #4939.
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 c9751e885..bd48d50a6 100644
--- a/src/Text/Pandoc/Writers/LaTeX.hs
+++ b/src/Text/Pandoc/Writers/LaTeX.hs
@@ -1136,7 +1136,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