git.iko.soy/typeable/pandoc
on master help sign in
EPUB writer: Avoid excess whitespace in nav.xhtml.

This should improve TOC view in iBooks. Closes #1392.

commit0f970ed95bc36df8de655a665ff8395b6bf3be1f authorJohn MacFarlane <jgm@berkeley.edu> dateSun 20 Jul 2014, 23:28 (12 years ago) parent64c7a0a
1 file changed+1−1
src/Text/Pandoc/Writers/EPUB.hs+1−1
src/Text/Pandoc/Writers/EPUB.hs+1−1
@@ -581,7 +581,7 @@ writeEPUB opts doc@(Pandoc meta _) = do
581581 navXhtmlFormatter n tit src subs = unode "li" !
582582 [("id", "toc-li-" ++ show n)] $
583583 (unode "a" ! [("href",src)]
584− $ (unode "span" tit))
584+ $ tit)
585585 : case subs of
586586 [] -> []
587587 (_:_) -> [unode "ol" ! [("class","toc")] $ subs]