mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-27 09:55:57 +00:00
DOCX writer: Look in user data dir for archive reference.docx.
This commit is contained in:
@@ -183,7 +183,7 @@ writeDocx opts doc@(Pandoc meta _) = do
|
||||
case writerReferenceDocx opts of
|
||||
Just f -> B.readFile f
|
||||
Nothing -> readDataFile datadir "reference.docx"
|
||||
distArchive <- liftM (toArchive . toLazy) $ readDataFile Nothing "reference.docx"
|
||||
distArchive <- liftM (toArchive . toLazy) $ readDataFile datadir "reference.docx"
|
||||
|
||||
parsedDoc <- parseXml refArchive distArchive "word/document.xml"
|
||||
let wname f qn = qPrefix qn == Just "w" && f (qName qn)
|
||||
|
||||
Reference in New Issue
Block a user