git.iko.soy/typeable/pandoc
on master help sign in
MediaBag: Improved normalisation when writing files
commitb04bb3b6d279cf50a4a8f67ccda00afd9c4a5a28 authorMatthew Pickering <matthewtpickering@gmail.com> dateTue 5 Aug 2014, 11:02 (12 years ago) parent2de2842
1 file changed+1−1
src/Text/Pandoc/MediaBag.hs+1−1
src/Text/Pandoc/MediaBag.hs+1−1
@@ -99,7 +99,7 @@ writeMedia :: Bool -> FilePath -> (FilePath, BL.ByteString) -> IO ()
9999writeMedia verbose dir (subpath, bs) = do
100100 -- we join and split to convert a/b/c to a\b\c on Windows;
101101 -- in zip containers all paths use /
102− let fullpath = dir </> joinPath (splitPath subpath)
102+ let fullpath = dir </> normalise subpath
103103 createDirectoryIfMissing True $ takeDirectory fullpath
104104 when verbose $ UTF8.hPutStrLn stderr $ "pandoc: extracting " ++ fullpath
105105 BL.writeFile fullpath bs