View Single Post
Old 09-10-2010, 06:26 AM   #7
Perkin
Guru
Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.
 
Perkin's Avatar
 
Posts: 655
Karma: 64171
Join Date: Sep 2010
Location: Kent, England, Sol 3, ZZ9 plural Z Alpha
Device: Sony PRS-300, Kobo Aura HD, iPad (Marvin)
Quote:
Originally Posted by Coleccionista View Post
Right now, I have to manually delete and join the lines, ideally I'd select a block of text and a magic hotkey/icon would get rid of all the tags but for the opening and closing ones.
Try on a backup first.

You could do a s&r regex, minimal match - in code view
(As long as the new paragraphs haven't got a class - if they have becomes more complicated)
search '([a-z]) </p>## <p>' replace with '\1 ' (without quotes)

notice the search has three spaces, and the replace has 1 space
also the two # should both be replaced with a copied carriage-return / linefeed characters (select and copy a blank line in codeview, appears like a highlighted space)

If the lines don't end in spaces you can remove the space before the '</p>' in the search term.
I also do a similar one, which does lines that end in a comma.

Hope this is understandable.
Perkin is offline   Reply With Quote