git.iko.soy/typeable/pandoc
on master help sign in
Fixed bug in fetching CSL files from CSL data directory.
commitb63566f09cfdf6de51356989dd2af4d0d411e5c3 authorJohn MacFarlane <fiddlosopher@gmail.com> dateThu 18 Oct 2012, 08:55 (14 years ago) parentc27b8ba
1 file changed+2−2
src/pandoc.hs+2−2
src/pandoc.hs+2−2
@@ -934,8 +934,8 @@ main = do
934934 then UTF8.readFile cslfile
935935 else do
936936 csldir <- getAppUserDataDirectory "csl"
937− readDataFile datadir (replaceDirectory
938− (replaceExtension cslfile "csl") csldir)
937+ readDataFile (Just csldir)
938+ (replaceExtension cslfile "csl")
939939 abbrevs <- maybe (return []) CSL.readJsonAbbrevFile cslabbrevs
940940 return $ Just csl { CSL.styleAbbrevs = abbrevs }
941941 else return Nothing