View Single Post
Old 04-03-2013, 03:01 AM   #5
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
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 ")

Code:
\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]+">"
Tex2002ans is offline   Reply With Quote