View Single Post
Old 05-08-2024, 04:29 PM   #37
m_pluto
Member
m_pluto began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Jun 2021
Device: Kobo Sage
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.
Attached Thumbnails
Click image for larger version

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

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

Last edited by m_pluto; 05-08-2024 at 04:31 PM.
m_pluto is offline   Reply With Quote