View Single Post
Old 08-23-2011, 06:37 PM   #5
alansplace
Grand Sorcerer
alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.
 
alansplace's Avatar
 
Posts: 5,886
Karma: 464403178
Join Date: Feb 2010
Location: 33.9388° N, 117.2716° W
Device: Kindles K-2, K-KB, PW 1 & 2, Voyage, Fire 2, 5 & HD 8, Surface 3, iPad
Cool thanks

Quote:
Originally Posted by crutledge View Post
This works for me in epp.

Code:
Find: ([^.”:?'!>—’)])</p>\s+<p>

Replace: \1 space
I search for paragraphs that do not end with a proper terminal followed by crlfs and a new paragraph.

Code:
<p>Now is the time</p>
<p>for all good men to come.</p>
becomes
Code:
<p>Now is the time for all good men to come.</p>
i don't grok 'epp', but that code did not find the broken paragraph in sigil code view. but then the code is more complex than just <p>text</p> and i' a rank beginner at regex and html.

here's a common example:

rusting</p>

<p class="calibre7">away.


Last edited by alansplace; 08-23-2011 at 06:46 PM. Reason: add a line
alansplace is offline   Reply With Quote