View Single Post
Old 04-15-2015, 05:36 PM   #11
gbm
Wizard
gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.
 
Posts: 2,171
Karma: 8800000
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
This is one I think is from the Sigil forums, use to find and join split paras:

Search
Code:
</p>\s*<p[^>]+>([a-z])
replace
Code:
\1
Have it as a saved search in ebook editor.
Using the OP example this is the result.
Spoiler:
<p class="calibre1">And Alandra looking at him as he came into the room, found that although she had not wanted to allow her grandfather one courtesy, she was getting to her feet. </p>
<p class="calibre1">Silently, she watched and waited as he came closer. And when he stopped and for long seconds stared at her, she saw deep frown lines groove on his forehead. But she had no word to say to him, and he none for her as he turned to the man who, keeping his eyes steady on the two of them, had now moved from his position by the door, and was coming in their direction. </p>
<p class="calibre1">And it was left to Matt Carstairs to introduce the two—the elderly man who still had the gait of a man years younger, and the young woman whose solemn face was giving nothing away of the very low regard in which she held the other. </p>
<p class="calibre1">'This,' said Matt Carstairs, pausing only marginally as if to assess how the older man would take it, 'this woman claims to be your granddaughter, sir—she says she is Edward's child.' </p>

bernie
Quote:
Originally Posted by cybmole View Post
that last one is the "proper" way to detect & remove the blank stuff between end of one line and start of next. my lazy way is to copy paste the whole shebang into the find field & it usually works!



I used to have a file with several of these all tested and vetted but I can't find it. and I could not face re-reading all of the regex examples in the sigil forum stickies

I'm sure there are detailed old threads but writing the appropirate search expression for the forum search engine has me beat

Last edited by gbm; 04-15-2015 at 05:49 PM.
gbm is offline   Reply With Quote