EPUB writer: Don't include nav node in spine unless --toc was requested.
Previously we included it in the spine with `linear="no"`, leading to odd results in some readers. Closes #1593.
This commit is contained in:
parent
cb1a8da01c
commit
db90667a79
1 changed files with 2 additions and 4 deletions
|
@ -528,10 +528,8 @@ writeEPUB opts doc@(Pandoc meta _) = do
|
||||||
case lookupMeta "title" meta of
|
case lookupMeta "title" meta of
|
||||||
Just _ -> "yes"
|
Just _ -> "yes"
|
||||||
Nothing -> "no")] $ ()) :
|
Nothing -> "no")] $ ()) :
|
||||||
(unode "itemref" ! [("idref", "nav")
|
[unode "itemref" ! [("idref", "nav")] $ ()
|
||||||
,("linear", if writerTableOfContents opts
|
| writerTableOfContents opts ] ++
|
||||||
then "yes"
|
|
||||||
else "no")] $ ()) :
|
|
||||||
map chapterRefNode chapterEntries)
|
map chapterRefNode chapterEntries)
|
||||||
, unode "guide" $
|
, unode "guide" $
|
||||||
[ unode "reference" !
|
[ unode "reference" !
|
||||||
|
|
Loading…
Reference in a new issue