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:
John MacFarlane
2025-02-16 14:43:37 -08:00
parent abf0b5123b
commit dbe2495ad4
+1 -1
View File
@@ -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...