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
|
let navXhtmlFormatter :: Int -> String -> String -> [Element] -> Element
|
||||||
navXhtmlFormatter n tit src subs = unode "li" !
|
navXhtmlFormatter n tit src subs = unode "li" !
|
||||||
[("id", "toc-li-" ++ show n)] $
|
[("id", "toc-li-" ++ show n)] $
|
||||||
unode "a" ! [("href",src)] $
|
(unode "a" ! [("href",src)]
|
||||||
unode "span" tit :
|
$ (unode "span" tit))
|
||||||
case subs of
|
: case subs of
|
||||||
[] -> []
|
[] -> []
|
||||||
(_:_) -> [unode "ol" subs]
|
(_:_) -> [unode "ol" subs]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue