DOCX writer: Look in user data dir for archive reference.docx.
commite4f3475eaa2e1f6e55a76291ead555bb09f20f93
authorJohn MacFarlane <fiddlosopher@gmail.com>
dateTue 21 Oct 2014, 14:33 (12 years ago)
parent78bdc08
src/Text/Pandoc/Writers/Docx.hs+1−1
@@ -183,7 +183,7 @@ writeDocx opts doc@(Pandoc meta _) = do
183183 case writerReferenceDocx opts of
184184 Just f -> B.readFile f
185185 Nothing -> readDataFile datadir "reference.docx"
186− distArchive <- liftM (toArchive . toLazy) $ readDataFile Nothing "reference.docx"
186+ distArchive <- liftM (toArchive . toLazy) $ readDataFile datadir "reference.docx"
187187
188188 parsedDoc <- parseXml refArchive distArchive "word/document.xml"
189189 let wname f qn = qPrefix qn == Just "w" && f (qName qn)