Delete empty paragraphs

I just imported a document from the Web into SO8 Writer. It looked to have double line spacing, when a change to single spacing did nothing, I discovered ("view hidden characters") that there are two paragraph breaks after each line of text. So... after each line, there's a blank line.

How do I get rid of these things? I tried AutoCorrect, delete blank paragraphs, but haven't got that to do anything yet.

Of course I can just delete the superfluous lines manually... I need to read the document anyway :)

[546 byte] By [john.egger] at [2007-11-25 23:09:30]
# 1

I would be glad to help you with this but you have a very strange document. Would you please provide a link to the website from which you copied & pasted this document.

If I point you to a macro to copy & paste would you know how to make use of it?

In the meantime you might try this on a backup copy assuming 齬eal?paragraphs have at least 3 paragraph breaks following them.

Pick two keyboard characters that do not appear in the doc like 齸?and ?? Now use Fine & Replace as follows:

Find = 齘$?(empty paragraphs ?my 鼺ind?actually goes in 齋earch for?

Replace = 齸?br />

Check the Regular Expressions box which is under More Options in SO8. I had to use Find All and then Replace (not Replace All).

Uncheck Regular Expressions and then:

Find = 齸~?br />

Replace = ??br />

Replace All should work here and for the rest of these.

Find = 齸?br />

Replace = space (just tap the space bar).

Check Regular Expressions again:

Find = ??(paragraph breaks)

Replace = blank

Make sure Regular Expressions remains checked:

Find = ??br />

Replace = 齖n?(A paragraph break when used in the Replace box as opposed to a line break when used in the Search box.)

This should give you a fairly decent document but the macro I mentioned would probably do a better job if run is place of the next to last step above. It is designed to convert ASCII text documents where every line is followed by a single paragraph break to a normal Writer document.

JohnV at 2007-7-5 18:00:04 > top of Java-index,StarOffice,StarSuite...