View Single Post
Old 02-20-2018, 10:54 PM   #111
RedHeron
Junior Member
RedHeron began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Dec 2017
Device: Kobo H2O
Quote:
Originally Posted by DNSB View Post
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>*</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.
That's a good idea, so I tried checking the two versions in an editor.

The Calibre plugin changes it to <p>&#160</p>.
Kepubify changes it to <p></p>.

I tried changing the instances of <p>&nbsp;</p> in the original epub to <p>&#160</p>, and then converted with kepubify, to see if there was any difference.
Like before, it still changed it to <p></p>.

So I guess that explains why the spaces are disappearing.
RedHeron is offline   Reply With Quote