From 7e712abfa6d5deea5a17e05183be513e5a250eb2 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 1 Jul 2016 15:41:33 -0700 Subject: LaTeX writer: don't URI-escape image source. Usually this is a local file, and replacing spaces with `%20` ruins things. Closes #2825. --- src/Text/Pandoc/Writers/LaTeX.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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") <> -- cgit v1.2.3