View Single Post
Old 09-28-2023, 01:25 PM   #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
Hey, btired, welcome to MobileRead!!!

Quote:
Originally Posted by btired View Post
I'm still pretty new to using Regex and I was wondering if it can help me find the following: Carriage returns / new lines that are not new lines that end with a tag; then replace them with a blank 'space'.
Like KevinH said, the easiest way is to:
  • Tools > Reformat HTML > Mend and Prettify All HTML Files

- - -

After that, if you wanted to merge "broken" paragraphs together, then see my answers in:

That would help combine things like:

Code:
<p>This is an example</p>
<p>of lines that accidentally</p>
<p>didn't merge into a single paragraph.</p>
and give you:

Code:
<p>This is an example of lines that accidentally didn't merge into a single paragraph.</p>
Tex2002ans is offline   Reply With Quote