git.iko.soy/typeable/pandoc
on master help sign in
Use user data directory for reference docx archive.

This allows the test suite to work without installing pandoc first. It also brings the docx writer in line with the odt writer.

commitbee255cbfe39a00247a96c63ca5d2527200da9cf authorJohn MacFarlane <jgm@berkeley.edu> dateWed 9 Sep 2015, 10:16 (11 years ago) parent7f515ad
1 file changed+1−1
src/Text/Pandoc/Writers/Docx.hs+1−1
src/Text/Pandoc/Writers/Docx.hs+1−1
@@ -211,7 +211,7 @@ writeDocx opts doc@(Pandoc meta _) = do
211211 let doc' = walk fixDisplayMath $ doc
212212 username <- lookup "USERNAME" <$> getEnvironment
213213 utctime <- getCurrentTime
214− distArchive <- getDefaultReferenceDocx Nothing
214+ distArchive <- getDefaultReferenceDocx datadir
215215 refArchive <- case writerReferenceDocx opts of
216216 Just f -> liftM (toArchive . toLazy) $ B.readFile f
217217 Nothing -> getDefaultReferenceDocx datadir