mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-26 09:25:48 +00:00
EPUB writer: use a nonbreaking space after section number in nav.xhtml.
This seems to be required for iOS books app to display the space.
This commit is contained in:
@@ -922,7 +922,7 @@ createNavEntry opts meta metadata
|
||||
subs <- catMaybes <$> mapM mkItem subsecs
|
||||
let secnum' = case secNumber secinfo of
|
||||
Just num -> [Span ("", ["section-header-number"], [])
|
||||
[Str num] , Space]
|
||||
[Str num] , Str "\160"]
|
||||
Nothing -> []
|
||||
let title' = secnum' <> secTitle secinfo
|
||||
-- can't have <a> elements inside generated links...
|
||||
|
||||
Reference in New Issue
Block a user