View Single Post
Old 02-19-2018, 07:23 PM   #107
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,471
Karma: 169115146
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by RedHeron View Post
I've noticed something strange.

If an epub uses <p>&nbsp;</p> to make a space, kepubify seems to ignore it, and there is no space.

But if I use the Calibre plugin to convert to kepub, <p>&nbsp;</p> still works and there is a space.
You might want to open the kepubify and Calibre plugin versions in an epub editor and see what that code looks like after the conversion. It's possible that one is converting to <p>&#160</p> while the other is leaving it as <p>&nbsp;</p>. The XHTML5 spec removed most of the named character entities so you have to use the numeric character entities which makes sense since XHTML5 dropped DTDs and most of the named character entities were defined in a DTD.
DNSB is offline   Reply With Quote