I have a number of files that are fan-done translations or fanfiction that I get in ePub format
The files always seem to include 1 or 2 pages at the very least that are blank, usually between chapters or after images.
I never read them in ePub so I don't mind if the ePub stays the way it is, actually, I think, that's preferable as it's the original. I always convert to KFX or AZW3 as I read on a Kindle Paperwhite 3. But this means I'm constantly having to [Next Page] twice which gets annoying after awhile.
I have a few set things that I automatically
Search & Replace for every conversion already like
" and " to
" & " &
"in and out of itself" to
"in & of itself" &
"have a cake & eat a cake" to
"have a cake & eat it too" because I run into those a lot. So I thought adding another would be no big deal. But this one I can't seem to find a way to make it work
It doesn't help that some of the pages are truly blank while others are "blank" but have 1, 3, or even 5 in one case, line breaks on the page. But I can't find anything that works on any of them at all.
Is there a way to:- Make a search & replace that replaces blank pages?
- Or one that deletes any pages that have nothing but line breaks?
- Or maybe a way to do a search that includes a page break & a line break?
- If I can do just the blank pages is there a way to search for 3 line breaks in a row? I don't mind making a separate search for 3 & 5 though the ones with only 1 I'll just have to deal with but if that's the best I can get, I'm willing to suffer on just a few if it means I can get rid of the rest.
- I've looked through the conversion options & settings but there's always a chance I missed something. Is there an option somewhere to remove blank pages? I know there's one to remove blank lines between paragraphs.
Most of the pages in question I discovered have a non-breaking space at the top
Code:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>end</title>
</head>
<body>
<p> </p>
</body>
</html>
It seems that it doesn't let me include the NBSP in code, it's the one that looks like "&" "#" "160" ";" all together
while many have a break, some have it with an alignment tag
Code:
<p style="text-align: right;"><br/></p>
if that makes any difference.
I've tried converting ePub to ePub to see if I can get it to work & nothing I've tried so far has been successful.
Can anyone help?