View Single Post
Old 06-23-2010, 09:19 AM   #9
steven522
binomial: homo legentem
steven522 ought to be getting tired of karma fortunes by now.steven522 ought to be getting tired of karma fortunes by now.steven522 ought to be getting tired of karma fortunes by now.steven522 ought to be getting tired of karma fortunes by now.steven522 ought to be getting tired of karma fortunes by now.steven522 ought to be getting tired of karma fortunes by now.steven522 ought to be getting tired of karma fortunes by now.steven522 ought to be getting tired of karma fortunes by now.steven522 ought to be getting tired of karma fortunes by now.steven522 ought to be getting tired of karma fortunes by now.steven522 ought to be getting tired of karma fortunes by now.
 
steven522's Avatar
 
Posts: 1,061
Karma: 25222222
Join Date: Feb 2010
Location: Alabama, USA
Device: iriver Story HD; Archos 80 G9
Quote:
Originally Posted by livingenzyme View Post
Interesting... I didn't know word processor has this option. How do you do this?
With MS Word, you can search for "^p" which is the manual line break character. I usually replace with a space, so that this:

<p>It was a dark
and stormy night.</p>
<p>A shot rang out.</p>

becomes this:

<p>It was a dark and stormy night.</p> <p>A shot rang out.</p>

Then you can search and replace </p> with a ^p to get:

<p>It was a dark and stormy night.
<p>A shot rang out.

And replace the <p> markers with nothing to finish cleaning up.

The only drawback is if you are converting a file that has no specific end of line marker such as </p> in html. Attempting to convert any badly formatted plain text is a pain no matter what.
steven522 is offline   Reply With Quote