I would run the Regexes I mentioned in this topic for cleaning up some broken Calibre paragraphs:
https://www.mobileread.com/forums/sho...89#post2446589
As to the unclosed quote, this regex works with "smart quotes" with no closing quote (forget which user I grabbed this one from, thank you so much this one is very helpful):
Search:
Code:
(“[^”\r\n]*)</p>\s+<p>
Replace (notice the space after "\1 ")
If you wanted to dumb this down for dumb quotes (I did not test this, it should work, but it might be VERY ugly):
Search:
Code:
("[^"\r\n]*)</p>\s+<p>
Make sure to use all of these ONE BY ONE, and never do a "Replace All".
If you want these to work for calibre code, change the Red "<p>" into "
<p class="calibre[0-9]+">"