Re: Find & Replace Line Breaks with Paragraph Breaks

From: Paul S. Wolf (paul.s.wolf_at_alum.wpi.edu)
Date: 05/18/04


Date: Tue, 18 May 2004 16:17:15 -0400

Steve Easton wrote:
> Correct, which would leave a set of unused <p></p> tags where the first <br>
> was replaced
> and an unused opening <p> tag when the last <br> was replaced.

But look back at my original suggestion. It was to replace <br> with
</p><p>. i.e. insert a CLOSING tag followed by a new opening tag.

so

<p> text <br>
more text </p>
<p> still more text <br>
even more text </p>

would become

<p> text </p><p>
more text </p>
<p> still more text </p><p>
even more text </p>

And FP would probably rearrange that to:

<p> text </p>
<p> more text </p>
<p> still more text </p>
<p> even more text </p>

-- 
Paul S. Wolf, P.E.
mailto:paul.s.wolf@alum.wpi.edu