View Single Post
Old 05-08-2024, 04:29 PM   #37
m_pluto
Enthusiast
m_pluto began at the beginning.
 
m_pluto's Avatar
 
Posts: 36
Karma: 10
Join Date: Jun 2021
Device: Kobo Sage, Libra Colour
Quote:
Originally Posted by tretneo View Post
With the above in place I have large spacing before the first paragraph in the Synopsis and between each subsequent paragraph. What am I missing?
So for the workaround for the first space, the best I've been able to come up with that works consistently involves doing a mass search/replace in calibre for editing book data.

1. set search mode to character match
2. Select the search field to comments.
3. copy/paste the following below – for ease, include quotation marks when copying and after pasting delete them [basically what you're typing in is <div> and a paragraph space, which can be copied/pasted from the end of any paragraph]
Code:
"<div>
"
4. Set replace to be just plain <div> or leave blank to remove <div> all together, but if you do that, be sure to do a second search/replace with the closing tag </div>


Alternatively:
1. Set search mode to Regular expression
2. select search field to comments
3. type in the following
Code:
<div>\n
4. repeat step 4 from above.

I've included some screenshots that show what it should look like with a "test" line showing that the paragraph space is gone. Whichever method you use in the future, I suggest using the "save" button to save it for future searches.


Edit to add: The whole reason this is a thing is that while Calibre stores the description in html, the plist database on the kobo seems to use BOTH html AND rich text (at least to some small extent) in the description metadata, so. So, if you're having issues with random extra spaces in your description on your kobo, do a mass search/replace for a paragraph break (the regex option above is easiest), then update the metadata for all books with book descriptions on your kobo using Kobo Utility plugin. Don't ask me why it's this way, I just know that it the way it is.
Attached Thumbnails
Click image for larger version

Name:	Screenshot 2024-05-08 at 13.24.14.png
Views:	313
Size:	256.2 KB
ID:	208139   Click image for larger version

Name:	Screenshot 2024-05-08 at 13.26.23.png
Views:	292
Size:	213.3 KB
ID:	208140  

Last edited by m_pluto; 06-02-2024 at 07:30 AM.
m_pluto is offline   Reply With Quote