summaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Filter
diff options
context:
space:
mode:
authorLaurentRDC <>2019-04-22 13:49:00 (GMT)
committerhdiff <hdiff@hdiff.luite.com>2019-04-22 13:49:00 (GMT)
commit4e44c1dae8f92fd69f451c3b987b525ad4198dd5 (patch)
tree226f29a424b6b72db3cf7c670eb9b035f58564dd /src/Text/Pandoc/Filter
parent27a4ae7b3b04161800959901a17dec4481c06c09 (diff)
version 2.1.1.02.1.1.0
Diffstat (limited to 'src/Text/Pandoc/Filter')
-rw-r--r--src/Text/Pandoc/Filter/Pyplot/FigureSpec.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Filter/Pyplot/FigureSpec.hs b/src/Text/Pandoc/Filter/Pyplot/FigureSpec.hs
index 2bd2cd7..3cc8d3f 100644
--- a/src/Text/Pandoc/Filter/Pyplot/FigureSpec.hs
+++ b/src/Text/Pandoc/Filter/Pyplot/FigureSpec.hs
@@ -84,7 +84,7 @@ toImage spec = head . toList $ para $ imageWith attrs' target' "fig:" caption'
-- | Determine the path a figure should have.
figurePath :: FigureSpec -> FilePath
-figurePath spec = (directory spec </> stem spec)
+figurePath spec = directory spec </> stem spec
where
stem = flip addExtension ext . show . hash
ext = extension . saveFormat $ spec