EPUB: Fixed invalid nesting problem in nav.xhtml.
This commit is contained in:
parent
e9542a60b5
commit
afa5a4da67
1 changed files with 3 additions and 3 deletions
|
@ -274,9 +274,9 @@ writeEPUB version opts doc@(Pandoc meta _) = do
|
|||
let navXhtmlFormatter :: Int -> String -> String -> [Element] -> Element
|
||||
navXhtmlFormatter n tit src subs = unode "li" !
|
||||
[("id", "toc-li-" ++ show n)] $
|
||||
unode "a" ! [("href",src)] $
|
||||
unode "span" tit :
|
||||
case subs of
|
||||
(unode "a" ! [("href",src)]
|
||||
$ (unode "span" tit))
|
||||
: case subs of
|
||||
[] -> []
|
||||
(_:_) -> [unode "ol" subs]
|
||||
|
||||
|
|
Loading…
Reference in a new issue