Fixes to compile after rebase.
This commit is contained in:
parent
04545c92c8
commit
33af62acc5
2 changed files with 4 additions and 3 deletions
|
@ -1121,7 +1121,8 @@ inlineToOpenXML' opts (Math mathType str) = do
|
||||||
case writeOMML displayType <$> readTeX str of
|
case writeOMML displayType <$> readTeX str of
|
||||||
Right r -> return [r]
|
Right r -> return [r]
|
||||||
Left e -> do
|
Left e -> do
|
||||||
warn $ "Cannot convert the following TeX math, skipping:\n" ++ str ++
|
(lift . lift) $ P.warn $
|
||||||
|
"Cannot convert the following TeX math, skipping:\n" ++ str ++
|
||||||
"\n" ++ e
|
"\n" ++ e
|
||||||
inlinesToOpenXML opts (texMathToInlines mathType str)
|
inlinesToOpenXML opts (texMathToInlines mathType str)
|
||||||
inlineToOpenXML' opts (Cite _ lst) = inlinesToOpenXML opts lst
|
inlineToOpenXML' opts (Cite _ lst) = inlinesToOpenXML opts lst
|
||||||
|
|
|
@ -18,7 +18,7 @@ import Text.Pandoc.Definition
|
||||||
import Text.Pandoc.XML
|
import Text.Pandoc.XML
|
||||||
import Text.Pandoc.Readers.TeXMath (texMathToInlines)
|
import Text.Pandoc.Readers.TeXMath (texMathToInlines)
|
||||||
import Text.Pandoc.Writers.Shared
|
import Text.Pandoc.Writers.Shared
|
||||||
import Text.Pandoc.Shared (linesToPara, splitBy, warn)
|
import Text.Pandoc.Shared (linesToPara, splitBy)
|
||||||
import Text.Pandoc.Options
|
import Text.Pandoc.Options
|
||||||
import Text.Pandoc.Templates (renderTemplate')
|
import Text.Pandoc.Templates (renderTemplate')
|
||||||
import Text.Pandoc.Pretty
|
import Text.Pandoc.Pretty
|
||||||
|
@ -542,7 +542,7 @@ imageICML opts style attr (src, _) = do
|
||||||
case imageSize img of
|
case imageSize img of
|
||||||
Right size -> return size
|
Right size -> return size
|
||||||
Left msg -> do
|
Left msg -> do
|
||||||
warn $ "Could not determine image size in `" ++
|
lift $ P.warn $ "Could not determine image size in `" ++
|
||||||
src ++ "': " ++ msg
|
src ++ "': " ++ msg
|
||||||
return def
|
return def
|
||||||
let (ow, oh) = sizeInPoints imgS
|
let (ow, oh) = sizeInPoints imgS
|
||||||
|
|
Loading…
Reference in a new issue