how i remove 2 or more empty lines and replace single line space. (in macro code)

how i am removing 2 or more line space (empty lines) and replace a single line space. (in openoffice 2.0) writtertest.jpg

Please specify your question (more details) and upload a sample file.

.

If you are still working on OpenOffice 2.0, so update to OpenOffice 4.1.6 or to LibreOffice (current versions about 6.0.7 or 6.1.4). Be advised that this is a LibreOffice forum. For OpenOffice questions post your query in Index page • Apache OpenOffice Community Forum. - Cheers

The built-in S&R tool in Writer cannot look beyond a single paragraph, so you cannot use it to search for 2 or more empty lines. You need to try with Alternative Search & Replace extension.