@@ -528,10 +528,8 @@ writeEPUB opts doc@(Pandoc meta _) = do
528528 case lookupMeta "title" meta of
529529 Just _ -> "yes"
530530 Nothing -> "no")] $ ()) :
531− (unode "itemref" ! [("idref", "nav")
532− ,("linear", if writerTableOfContents opts
533− then "yes"
534− else "no")] $ ()) :
531+ [unode "itemref" ! [("idref", "nav")] $ ()
532+ | writerTableOfContents opts ] ++
535533 map chapterRefNode chapterEntries)
536534 , unode "guide" $
537535 [ unode "reference" !