From 6aaf8f4770916fcef433d0078502d674a1c97fc7 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Thu, 10 Aug 2017 23:04:14 -0700 Subject: Expose getDefaultDataFile in both Shared and Class. --- src/Text/Pandoc/Writers/Docx.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Text/Pandoc/Writers') diff --git a/src/Text/Pandoc/Writers/Docx.hs b/src/Text/Pandoc/Writers/Docx.hs index fb6b2013a..a60056845 100644 --- a/src/Text/Pandoc/Writers/Docx.hs +++ b/src/Text/Pandoc/Writers/Docx.hs @@ -231,7 +231,7 @@ writeDocx opts doc@(Pandoc meta _) = do username <- P.lookupEnv "USERNAME" utctime <- P.getCurrentTime distArchive <- (toArchive . BL.fromStrict) <$> - P.readDataFile Nothing "reference.docx" + P.readDefaultDataFile "reference.docx" refArchive <- case writerReferenceDoc opts of Just f -> toArchive <$> P.readFileLazy f Nothing -> (toArchive . BL.fromStrict) <$> -- cgit v1.2.3