View Single Post
Old 05-11-2019, 03:08 AM   #11
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by agirlnamedfia View Post
If that's the case (which it might be), wouldn't it be a problem for every book, though? So far, for the 700 or so that I've checked, only about 1/4 had the issue.
Which to me suggests only 1/4 of your books have embedded line breaks anywhere.
Quote:
Anyway, apologies for the image not showing. Should be fixed now? I can't show you the code in tags because it won't show what the problem is, but I took some more screenshots...

This is what the code in "Edit Book" looks like. As marked, the line breaks happen when every line gets a new line number, for lack of a better explanation:


This is what the "Edit Metadata" comments section looks like in normal view, where no line breaks are visible:

This is what the "Edit Metadata" comments section looks like in HTML view, where you can see the line breaks:

If I remove the line breaks in the HTML view, then the problem is solved, but like I said before, I'd rather not have to check all the books and manually change them if I can at all help it...
And that is exactly what I was expecting. I expect there to be linebreaks after "First Lady of", "has emerged" and so on. And a double space between "United States" and "In a life of". In previous Kobo firmware versions, the first example would be on a single line (unless they wrapped there) and there would be a single line between the paragraphs.

To demonstrate this, the attached book has the following in the comments in calibre:

Code:
<div><p>This is a comment. There is a linebreak
after the word linebreak.</p><p>There are no linebreaks between this comment and the previous one. The p close and open tags are on the same line.</p>

<p>But there are two linebreaks before this one. i.e. there are two lines between the close and open tags.</p><p>And
in
this

paragraph,
there
is
a
linebreak
after
each

word

. With

two
linebreaks
after
the
four-letter
words.</p></div>
The screenshots are from device. They show the first two pages of the synopsis for this book when I sideloaded it. The screenshots show the linebreaks and multiple empty lines where here linebreaks are in the comments.

If this isn't what you are seeing on the device, we need to see screenshots or photos to show what you are seeing.

A quick fix for this seems to be using a metadata plugboard for the comments. Apparently the template "{comments}" will remove the linebreaks.
Attached Thumbnails
Click image for larger version

Name:	CommentWithLinebreak-synopsis-1.png
Views:	166
Size:	23.5 KB
ID:	171413   Click image for larger version

Name:	CommentWithLinebreak-synopsis-2.png
Views:	148
Size:	12.9 KB
ID:	171414  
Attached Files
File Type: epub Comment With Linebreak - davidfor.epub (1.8 KB, 135 views)
davidfor is offline   Reply With Quote