View Single Post
Old 05-10-2024, 02:59 PM   #38
tretneo
Junior Member
tretneo began at the beginning.
 
Posts: 6
Karma: 10
Join Date: May 2024
Device: Kobo Libra 2
Quote:
Originally Posted by m_pluto View Post
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.
This did the trick. Thank you! Is there any way to automate this via Plugboards or some other mechanism to avoid needing to do this manually all the time?
tretneo is offline   Reply With Quote