View Single Post
Old 03-01-2020, 09:39 AM   #1
jppeltier
Junior Member
jppeltier began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Mar 2020
Device: iPhone, iPad, Kobo
Question Non-breaking spaces in ePUB

Hello, I am giving a first shot at creating an ePUB, and am struggling with non-breaking spaces.

I am on macOS (Catalina), primarily using Pages to generate my ePUB. All is fine except the non-breaking spaces (present in my Pages document) but disappearing from my ePUB. After browsing the Internet, I tried different ways:
- I tried generating ePUB from Pages and from Vellum*.
- I tried checking the generated XHML, and can't find any non-breaking space tag where they should be.
- I tried updating the XHTML with non-breaking space tags (& nbsp, & #160 ...) and re-zipping the ePUB.
- I tried opening the ePUB in macOS Library and in Adobe Digital Editions.

Inevitably, the non-breaking spaces appear as normal spaces when I eventually display the ePUB. Am I doing something wrong here?

Thanks in advance for your help.

(*) fun fact: the left part of Vellum shows non-breaking spaces (View -> Invisible Characters) but at the same time the right part of the application (ePUB preview) shows normal spaces.
jppeltier is offline   Reply With Quote