mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-24 08:25:52 +00:00
EPUB writer: Avoid excess whitespace in nav.xhtml.
This should improve TOC view in iBooks. Closes #1392.
This commit is contained in:
@@ -581,7 +581,7 @@ writeEPUB opts doc@(Pandoc meta _) = do
|
||||
navXhtmlFormatter n tit src subs = unode "li" !
|
||||
[("id", "toc-li-" ++ show n)] $
|
||||
(unode "a" ! [("href",src)]
|
||||
$ (unode "span" tit))
|
||||
$ tit)
|
||||
: case subs of
|
||||
[] -> []
|
||||
(_:_) -> [unode "ol" ! [("class","toc")] $ subs]
|
||||
|
||||
Reference in New Issue
Block a user