git.iko.soy/typeable/pandoc
on master help sign in
EPUB: Don't use any decimal entities.

kindlegen doesn't like them - even '. It should be safe to use the unescaped ' character, since we know that all attributes are double quoted in the relevant files.

commit412580c22352b6f3278a4179deecc2b4beb1be1f authorJohn MacFarlane <fiddlosopher@gmail.com> dateTue 13 Dec 2011, 08:13 (15 years ago) parentd8d68c5
1 file changed+2−2
src/Text/Pandoc/Writers/EPUB.hs+2−2
src/Text/Pandoc/Writers/EPUB.hs+2−2
@@ -284,8 +284,8 @@ ppTopElement = ("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" ++) . unEntity .
284284 let (ds,ys) = break (==';') xs
285285 rest = drop 1 ys
286286 in case reads ('\'':'\\':ds ++ "'") of
287− ((x,_):_) | x > '\127' -> x : unEntity rest
288− _ -> ('&':'#':ds) ++ ";" ++ unEntity rest
287+ ((x,_):_) -> x : unEntity rest
288+ _ -> '&':'#':unEntity xs
289289 unEntity (x:xs) = x : unEntity xs
290290
291291imageTypeOf :: FilePath -> Maybe String