LaTeX writer: don't URI-escape image source.

Usually this is a local file, and replacing spaces with `%20`
ruins things.  Closes #2825.
This commit is contained in:
John MacFarlane
2016-07-01 15:41:33 -07:00
parent da38bebbdc
commit 7e712abfa6
+1 -1
View File
@@ -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") <>