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.
This commit is contained in:
parent
7f515add58
commit
bee255cbfe
1 changed files with 1 additions and 1 deletions
|
@ -211,7 +211,7 @@ writeDocx opts doc@(Pandoc meta _) = do
|
|||
let doc' = walk fixDisplayMath $ doc
|
||||
username <- lookup "USERNAME" <$> getEnvironment
|
||||
utctime <- getCurrentTime
|
||||
distArchive <- getDefaultReferenceDocx Nothing
|
||||
distArchive <- getDefaultReferenceDocx datadir
|
||||
refArchive <- case writerReferenceDocx opts of
|
||||
Just f -> liftM (toArchive . toLazy) $ B.readFile f
|
||||
Nothing -> getDefaultReferenceDocx datadir
|
||||
|
|
Loading…
Reference in a new issue