mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-25 08:55:55 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user