git.iko.soy/typeable/pandoc
on master help sign in
Docx writer: Fixed error message when style file can't be parsed.
commite6e63d16997322295f098470b85c4756b54d54f0 authorJohn MacFarlane <fiddlosopher@gmail.com> dateSat 21 Apr 2012, 09:27 (14 years ago) parent8d4680b
1 file changed+2−1
src/Text/Pandoc/Writers/Docx.hs+2−1
src/Text/Pandoc/Writers/Docx.hs+2−1
@@ -146,7 +146,8 @@ writeDocx mbRefDocx opts doc@(Pandoc (Meta tit auths date) _) = do
146146 let styledoc = case findEntryByPath stylepath refArchive >>=
147147 parseXMLDoc . toString . fromEntry of
148148 Just d -> d
149− Nothing -> error $ stylepath ++ "missing in reference docx"
149+ Nothing -> error $ "Unable to parse " ++ stylepath ++
150+ " from reference.docx"
150151 let styledoc' = styledoc{ elContent = elContent styledoc ++ map Elem newstyles }
151152 let styleEntry = toEntry stylepath epochtime $ fromString $ showTopElement' styledoc'
152153 -- construct word/numbering.xml