Fixed absolute URI detection in EPUB writer. Closes #1672.

This commit is contained in:
John MacFarlane 2014-10-08 14:54:03 -07:00
parent d60707eed0
commit a4d28cdd6d

View file

@ -816,8 +816,8 @@ transformInline :: WriterOptions
-> IO Inline
transformInline opts mediaRef (Image lab (src,tit)) = do
let oldsrc = case (unEscapeString src, writerSourceURL opts) of
(s, Just u) | not (isURI s) -> u </> s
(s, _) -> s
(s, Just u) | not (isURI src) -> u </> s
(s, _) -> s
newsrc <- modifyMediaRef mediaRef oldsrc
return $ Image lab (newsrc, tit)
transformInline opts _ (x@(Math _ _))