View Single Post
Old 12-02-2018, 05:00 PM   #90
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,600
Karma: 169712392
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
When I was playing with Konstantius's ebook, I noticed one oddity in the converted kepubs when the end of lines were disappearing. The original code from my test file read:
Code:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Non-breaking space</title>
</head>
<body>
<h3>This is a test file laden with non-breaking spaces</h3>
<p> </p>
<p>The first line was created with the character entities.</p>
<p>—&nbsp;—&nbsp;—&nbsp;—&nbsp;—&nbsp;—&nbsp;—&nbsp;—&nbsp;—&nbsp;—&nbsp;—&nbsp;—&nbsp;—&nbsp;—&nbsp;—&nbsp;</p>
<p>&nbsp;</p><p> </p>
<p> </p>
<p> </p>
<p>The second line was created with numeric entities.</p>
<p>— — — — — — — — — — — — — — — </p>
<p> </p>
</body>
</html>
While after conversion to kepub:
Code:
<?xml version="1.0" encoding="utf-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head>
<title>Non-breaking space</title>
<style type="text/css">div#book-inner{margin-top: 0;margin-bottom: 0;}</style></head>
<body><div class="book-columns"><div class="book-inner"><h3><span class="koboSpan" id="kobo.0.2">This is a test file laden with non-breaking spaces</span></h3><p><span class="koboSpan" id="kobo.1.1">*</span></p><p><span class="koboSpan" id="kobo.2.1">The first line was created with the character entities.</span></p><p><span class="koboSpan" id="kobo.3.1">—*—*—*—*—*—*—*—*—*—*—*—*—*—*—*</span></p><p><span class="koboSpan" id="kobo.4.1">*</span></p><p><span class="koboSpan" id="kobo.5.1">*</span></p><p><span class="koboSpan" id="kobo.6.1">*</span></p><p><span class="koboSpan" id="kobo.7.1">*</span></p><p><span class="koboSpan" id="kobo.8.1">The second line was created with numeric entities.</span></p><p><span class="koboSpan" id="kobo.9.1">𔍼*𔍼*𔍼*𔍼*𔍼*𔍼*𔍼*𔍼*𔍼*𔍼*𔍼*𔍼*𔍼*𔍼*𔍼*</span></p><p><span class="koboSpan" id="kobo.10.1">*</span></p></div></div></body></html>
DNSB is offline   Reply With Quote