summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2016-07-01 15:41:33 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2016-07-01 15:41:33 -0700
commit7e712abfa6d5deea5a17e05183be513e5a250eb2 (patch)
tree433cab2f239561536bb104357279350b352f9010
parentda38bebbdc71f19f609f727a3e73a38dddeb9102 (diff)
LaTeX writer: don't URI-escape image source.
Usually this is a local file, and replacing spaces with `%20` ruins things. Closes #2825.
-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 888c866a6..7629ccfaf 100644
--- a/src/Text/Pandoc/Writers/LaTeX.hs
+++ b/src/Text/Pandoc/Writers/LaTeX.hs
@@ -973,7 +973,7 @@ inlineToLaTeX (Image attr _ (source, _)) = do
source' = if isURI source
then source
else unEscapeString source
- source'' <- stringToLaTeX URLString (escapeURI source')
+ source'' <- stringToLaTeX URLString source'
inHeading <- gets stInHeading
return $
(if inHeading then "\\protect\\includegraphics" else "\\includegraphics") <>