aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Wang <novalazy@gmail.com>2012-03-10 16:57:37 +1100
committerPeter Wang <novalazy@gmail.com>2012-03-21 09:20:30 +1100
commitd74f3e1f2880ca6b9b7346e984fbd13aa037a0a2 (patch)
tree0bfc1787627c672b96838f39c06a55f2053a6877 /src
parent29c8f1554b412a46bee83e224b72e5931f172cb9 (diff)
downloadpandoc-d74f3e1f2880ca6b9b7346e984fbd13aa037a0a2.tar.gz
Texinfo writer: retain directories in image paths.
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/Writers/Texinfo.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/Texinfo.hs b/src/Text/Pandoc/Writers/Texinfo.hs
index 563ad7044..45e4c439f 100644
--- a/src/Text/Pandoc/Writers/Texinfo.hs
+++ b/src/Text/Pandoc/Writers/Texinfo.hs
@@ -415,7 +415,7 @@ inlineToTexinfo (Image alternate (source, _)) = do
text (ext ++ "}")
where
ext = drop 1 $ takeExtension source'
- base = takeBaseName source'
+ base = dropExtension source'
source' = if isAbsoluteURI source
then source
else unEscapeString source