EPUB writer: Don't put blank title page in reading sequence.
Set linear="no" if no title block. Addresses #797.
This commit is contained in:
parent
cb906e7512
commit
b6f75f60d6
1 changed files with 4 additions and 1 deletions
|
@ -242,7 +242,10 @@ writeEPUB opts doc@(Pandoc meta _) = do
|
||||||
Nothing -> []
|
Nothing -> []
|
||||||
Just _ -> [ unode "itemref" !
|
Just _ -> [ unode "itemref" !
|
||||||
[("idref", "cover"),("linear","no")] $ () ]
|
[("idref", "cover"),("linear","no")] $ () ]
|
||||||
++ ((unode "itemref" ! [("idref", "title_page"),("linear","yes")] $ ()) :
|
++ ((unode "itemref" ! [("idref", "title_page")
|
||||||
|
,("linear", case meta of
|
||||||
|
Meta [] [] [] -> "no"
|
||||||
|
_ -> "yes")] $ ()) :
|
||||||
(unode "itemref" ! [("idref", "nav")
|
(unode "itemref" ! [("idref", "nav")
|
||||||
,("linear", if writerTableOfContents opts
|
,("linear", if writerTableOfContents opts
|
||||||
then "yes"
|
then "yes"
|
||||||
|
|
Loading…
Reference in a new issue