Docx writer: Give full detail when there are errors converting tex math.
commit5449e4a22617ca28173cde5c31f46c15b1d8bc7f
authorJohn MacFarlane <jgm@berkeley.edu>
dateTue 22 Nov 2016, 22:21 (10 years ago)
parent77912dd
src/Text/Pandoc/Writers/Docx.hs+2−1
@@ -1116,7 +1116,8 @@ inlineToOpenXML' opts (Math mathType str) = do
11161116 case writeOMML displayType <$> readTeX str of
11171117 Right r -> return [r]
11181118 Left e -> do
1119− warn $ "Cannot convert the following TeX math, skipping:\n" ++ str
1119+ warn $ "Cannot convert the following TeX math, skipping:\n" ++ str ++
1120+ "\n" ++ e
11201121 inlinesToOpenXML opts (texMathToInlines mathType str)
11211122inlineToOpenXML' opts (Cite _ lst) = inlinesToOpenXML opts lst
11221123inlineToOpenXML' opts (Code attrs str) = do