At 19:42 31/08/2011 -0400, Cecilie Aux wrote:
I'm looking for a way to search and replace "carriage returns." For example, if there are 3 hard returns in a row between every paragraph and I want to change it to 2, or vice versa.

In one sense, you cannot: every return *defines* the end of a paragraph, so if you have three consecutive returns you have two additional, empty paragraphs, in fact. And empty paragraphs are generally a bad idea: instead, set paragraph spacing to establish what you need.

Any recommendations?

Use Find & Replace to search for ^$ (an empty paragraph) and replace it by something that won't already occur in your document - perhaps ##. (You need "Regular expressions" to be ticked.) This appears to catch only alternate consecutive empty paragraphs, which is ideal in your case. Then search for ## and replace it with nothing.

But better still, simply replace ^$ with nothing - to remove all empty paragraphs - and then set spacing before or after paragraphs to achieve the layout you need.

I trust this helps.

Brian Barker


--
For unsubscribe instructions e-mail to: [email protected]
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted

Reply via email to