summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2016-11-22 22:21:07 +0100
committerJohn MacFarlane <jgm@berkeley.edu>2016-11-22 22:21:07 +0100
commit5449e4a22617ca28173cde5c31f46c15b1d8bc7f (patch)
treecc1f12ad3d721ab53e93c1f80b692c692b596f4d /src
parent77912ddc56650aacc47a4e6fe722e758a77b06e2 (diff)
Docx writer: Give full detail when there are errors converting tex math.
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/Writers/Docx.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/Docx.hs b/src/Text/Pandoc/Writers/Docx.hs
index 6cc90f4d9..a8f82c0ec 100644
--- a/src/Text/Pandoc/Writers/Docx.hs
+++ b/src/Text/Pandoc/Writers/Docx.hs
@@ -1116,7 +1116,8 @@ inlineToOpenXML' opts (Math mathType str) = do
case writeOMML displayType <$> readTeX str of
Right r -> return [r]
Left e -> do
- warn $ "Cannot convert the following TeX math, skipping:\n" ++ str
+ warn $ "Cannot convert the following TeX math, skipping:\n" ++ str ++
+ "\n" ++ e
inlinesToOpenXML opts (texMathToInlines mathType str)
inlineToOpenXML' opts (Cite _ lst) = inlinesToOpenXML opts lst
inlineToOpenXML' opts (Code attrs str) = do