git.iko.soy/typeable/pandoc
on master help sign in
EPUB writer: Don't put blank title page in reading sequence.

Set linear="no" if no title block. Addresses #797.

commitb6f75f60d6a33d85839f8bec09c044a766d2caaa authorJohn MacFarlane <fiddlosopher@gmail.com> dateSun 24 Mar 2013, 23:06 (14 years ago) parentcb906e7
1 file changed+4−1
src/Text/Pandoc/Writers/EPUB.hs+4−1
src/Text/Pandoc/Writers/EPUB.hs+4−1
@@ -242,7 +242,10 @@ writeEPUB opts doc@(Pandoc meta _) = do
242242 Nothing -> []
243243 Just _ -> [ unode "itemref" !
244244 [("idref", "cover"),("linear","no")] $ () ]
245− ++ ((unode "itemref" ! [("idref", "title_page"),("linear","yes")] $ ()) :
245+ ++ ((unode "itemref" ! [("idref", "title_page")
246+ ,("linear", case meta of
247+ Meta [] [] [] -> "no"
248+ _ -> "yes")] $ ()) :
246249 (unode "itemref" ! [("idref", "nav")
247250 ,("linear", if writerTableOfContents opts
248251 then "yes"