git.iko.soy/typeable/pandoc
on master help sign in
EPUB writer: Don't use opf:title-type for epub2.

It is not supported and epubcheck complains.

commit54df49335a652710f10f4fc183265d1ab1d51d77 authorJohn MacFarlane <jgm@berkeley.edu> dateSun 31 Aug 2014, 12:08 (12 years ago) parentd1948ce
1 file changed+2−2
src/Text/Pandoc/Writers/EPUB.hs+2−2
src/Text/Pandoc/Writers/EPUB.hs+2−2
@@ -731,8 +731,8 @@ metadataElement version md currentTime =
731731 toTitleNode id' title
732732 | version == EPUB2 = [dcNode "title" !
733733 (("id",id') :
734− maybe [] (\x -> [("opf:file-as",x)]) (titleFileAs title) ++
735− maybe [] (\x -> [("opf:title-type",x)]) (titleType title)) $
734+ -- note: EPUB2 doesn't accept opf:title-type
735+ maybe [] (\x -> [("opf:file-as",x)]) (titleFileAs title)) $
736736 titleText title]
737737 | otherwise = [dcNode "title" ! [("id",id')] $ titleText title]
738738 ++