LaTeX writer: don't URI-escape image source.
Usually this is a local file, and replacing spaces with `%20`
ruins things. Closes #2825.
commit7e712abfa6d5deea5a17e05183be513e5a250eb2
authorJohn MacFarlane <jgm@berkeley.edu>
dateFri 1 Jul 2016, 15:41 (10 years ago)
parentda38beb
src/Text/Pandoc/Writers/LaTeX.hs+1−1
@@ -973,7 +973,7 @@ inlineToLaTeX (Image attr _ (source, _)) = do
973973 source' = if isURI source
974974 then source
975975 else unEscapeString source
976− source'' <- stringToLaTeX URLString (escapeURI source')
976+ source'' <- stringToLaTeX URLString source'
977977 inHeading <- gets stInHeading
978978 return $
979979 (if inHeading then "\\protect\\includegraphics" else "\\includegraphics") <>