Texinfo writer: retain directories in image paths.
commitd74f3e1f2880ca6b9b7346e984fbd13aa037a0a2
authorPeter Wang <novalazy@gmail.com>
dateSat 10 Mar 2012, 16:57 (15 years ago)
parent29c8f15
src/Text/Pandoc/Writers/Texinfo.hs+1−1
@@ -415,7 +415,7 @@ inlineToTexinfo (Image alternate (source, _)) = do
415415 text (ext ++ "}")
416416 where
417417 ext = drop 1 $ takeExtension source'
418− base = takeBaseName source'
418+ base = dropExtension source'
419419 source' = if isAbsoluteURI source
420420 then source
421421 else unEscapeString source