View Single Post
Old 02-27-2016, 12:01 AM   #6
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,113
Karma: 60406498
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Your original issue looked like a split (broken) paragraph.

I fix those in Codeview by using the proper REGEX to remove the trailing Paragraph ending (usually </p> but may include /Spans, /i, /b ... or it might use a Div)

I tend to do in 3 passes (note that some patterns include SELECTED punctuation marks
<lower to lower pass>
([a-z,"])</p>\s+([a-z])
\1 \2 ( after a few test replace, I use All )

<lower to upper pass>
([a-z,"])</p>\s+([A-Z"])
\1 \2 (I step through on this one and confirm each replace)

<dehyphen pass>
([a-z]-)</p>\s+([a-z])
\1\2 <no space in this replace. Also a step through pass

And you might want to do a emdash pass as well
theducks is offline   Reply With Quote