Thread: Style tweak?
View Single Post
Old 09-26-2020, 09:02 PM   #12
embryo
Fanatic
embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.
 
embryo's Avatar
 
Posts: 529
Karma: 64554
Join Date: Aug 2013
Device: Kobo Glo, GloHD
Quote:
Originally Posted by hyurte View Post
Many viewers will ignore information that doesn't make sense to them. Web browsers and the Calibre epub editor will, for example, display a string of spaces as a single space and empty paragraphs or paragraphs with only space characters like these
<p> </p>
<p></p>
<p/>
are essentially ignored. They don't exist and, as you've discovered, won't add the blank line you want.

However, a paragraph containing a non-breaking space will work as desired. Replace any
<p class="ls" />
with
<p class="ls">&nbsp;</p>
and you'll get a blank line. I've done it many times and KOReader handles it fine. On some systems the non-breaking space may be highlightable and selectable (like Calibre epub editor) or not (like my web browser on this forum).
Thank you for the info.
I also use <p>&nbsp;</p> when I want to insert a blank line, and its working OK.

The reason I wanted the tweak, is for those times I get a book that uses something else that does not work for some reason.
Since I can't edit the book with my reader, I had to read it like that. Without breaking lines..

Well, not anymore!!
embryo is offline   Reply With Quote