Merge pull request #717 from juhp/patch-1

EPUB: condition Blaze Utf8 module name import on blaze-html version
This commit is contained in:
John MacFarlane 2013-01-21 17:37:50 -08:00
commit 420845a32c

View file

@ -56,7 +56,11 @@ import Network.URI ( unEscapeString )
import Text.Pandoc.MIME (getMimeType) import Text.Pandoc.MIME (getMimeType)
import Prelude hiding (catch) import Prelude hiding (catch)
import Control.Exception (catch, SomeException) import Control.Exception (catch, SomeException)
#ifdef MIN_VERSION_blaze-html(0,5,0)
import Text.Blaze.Html.Renderer.Utf8 (renderHtml) import Text.Blaze.Html.Renderer.Utf8 (renderHtml)
#else
import Text.Blaze.Renderer.Utf8 (renderHtml)
#endif
-- | Produce an EPUB file from a Pandoc document. -- | Produce an EPUB file from a Pandoc document.
writeEPUB :: WriterOptions -- ^ Writer options writeEPUB :: WriterOptions -- ^ Writer options