diff --git a/src/Text/Pandoc/Writers/EPUB.hs b/src/Text/Pandoc/Writers/EPUB.hs index 1bc9f0c9e..c3b0c95f2 100644 --- a/src/Text/Pandoc/Writers/EPUB.hs +++ b/src/Text/Pandoc/Writers/EPUB.hs @@ -284,8 +284,8 @@ ppTopElement = ("\n" ++) . unEntity . let (ds,ys) = break (==';') xs rest = drop 1 ys in case reads ('\'':'\\':ds ++ "'") of - ((x,_):_) | x > '\127' -> x : unEntity rest - _ -> ('&':'#':ds) ++ ";" ++ unEntity rest + ((x,_):_) -> x : unEntity rest + _ -> '&':'#':unEntity xs unEntity (x:xs) = x : unEntity xs imageTypeOf :: FilePath -> Maybe String