"John & Mary Linge" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
I've tried this on OOO 3.0 on both Windows and Mac, so it should work
generally.
Select Find and Replace
Select More Options
Select Regular Expressions
Enter $ in the Search For field
Click Find
You will see the end of paragraph selected. You can replace it with any
character or character combination except for non-printing characters. If
you end the combination with \n, the end of paragraph character is
retained.
Otherwise, it is removed and the paragraph is merged with the next
paragraph. I did not check to see which paragraph formats are retained.
The help tells you that, to find and replace empty paragraphs, enter ^$ in
the Find field. If you replace it with nothing, the empty paragraph is
deleted.
By the way, examining the format of the document as saved on disk tells
you
nothing about how it is represented in memory.
John,
Thank you for this post and the example. I was able to accomplish what I
usually want to do searching for paragraph terminations, namely, either
replace doubles with singles or singles with doubles in selected text.
Searching for ^$ and replacing it with null does the former, while searching
for $ and replacing it with \n\n accomplishes the latter.
Much appreciated.
Jerry
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]