View Single Post
Old 08-03-2022, 11:26 AM   #31
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,370
Karma: 20212733
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
Quote:
Originally Posted by salty-horse View Post
I'm just trying to get the ebook I purchased to work on my device, and I did. Improving the markup isn't my goal.
That's totally understandable! I also use CSS for my personal reading device that I wouldn't if the ebook was for general use.


For anyone else who may be reading this -

A simple way to replace all those empty paragraphs is to use a find/replace:

Code:
find: <p class="CLASSNAME"><br/></p>\s*<p>
replace: <p class="SecBrk">

<p> = whatever tag follows the empty paragraph
\s* = any empty space between the tags
Make sure it is correct and then click "replace all" (assuming you have 'all HTML files' and regex selected)... All done in just a few seconds!
Turtle91 is offline   Reply With Quote