Ask Your Question

Revision history [back]

I use LO for most things now, except for this problem: cleaning up “dirty” documents. I still kept a copy of "MS Word 95" just because I was used to it, and I tried many times doing same in LO but gave up - it never worked.

It took me the last 3 hours but I finally figured it out. Time to chuck Word (and MS Windows) at last! :-)

This is how I used to do it before, using MS Word:

  1. search for ^p^p and replace with XX
  2. search for ^p and replace with _ (a single space)
  3. search for XX and replace with ^p
  4. search for _ _ (double space, no spaces!) and replace with _ (single space)
  5. run it multiple times until there are no more extra spaces in the document

This is how I now do it, with Libre Office

  1. download and install extension called “Alternative Searching” :-(
  2. search for ^$ and replace with XX_ (a space after the XX)
  3. search for $ and replace with a _ (space)
  4. open the Alternative Searching extension and…
  5. search for XX_ and replace with /p
  6. search for _ _ (double space, no spaces!) and replace with _ (single space)
  7. run it multiple times until there are no more extra spaces in the document

Hope it works for you.

Cheers, skris88