git.iko.soy/typeable/pandoc
on master help sign in
EPUB: Fixed invalid nesting problem in nav.xhtml.
commitafa5a4da6779ff448868cb08ce5a9cfdf1d1b845 authorJohn MacFarlane <fiddlosopher@gmail.com> dateFri 2 Nov 2012, 21:12 (14 years ago) parente9542a6
1 file changed+3−3
src/Text/Pandoc/Writers/EPUB.hs+3−3
src/Text/Pandoc/Writers/EPUB.hs+3−3
@@ -274,9 +274,9 @@ writeEPUB version opts doc@(Pandoc meta _) = do
274274 let navXhtmlFormatter :: Int -> String -> String -> [Element] -> Element
275275 navXhtmlFormatter n tit src subs = unode "li" !
276276 [("id", "toc-li-" ++ show n)] $
277− unode "a" ! [("href",src)] $
278− unode "span" tit :
279− case subs of
277+ (unode "a" ! [("href",src)]
278+ $ (unode "span" tit))
279+ : case subs of
280280 [] -> []
281281 (_:_) -> [unode "ol" subs]
282282