How to replace multiple paragraph breaks with single?

The document has things like
.
line of text
.
line of text
.
.
line of text

(Ignore the dots please)

How can I replace the double paragraph spaces with single, so there is never more than one paragraph space (actually, this is technically I think a double. I want an empty line between my paragraphs, but I don’t want two empty lines between my paragraphs.

I can target all the breaks with ^$ but I haven’t found something to replace them with.

This answer could help you: How to paste deleting the lines - #3 by EarnestAl

Instead of “\.$” use “^$”, for empty paragraphs.

I am assuming you want an empty paragraph for adding something later. If not and it is just for spacing then you should adjust spacing in the Indents & Spacing tab of paragraph style or possibly using direct formatting (bad thing) select the paragraphs and click Format > Paragraph > Indents & Spacing and adjust spacing there.

Find & Replace cannot find two empty paragraphs together so a workaround is needed

Make your selection of text, make sure Regular Expressions and Selection boxes are ticked. In Find enter ^$. If nothing is in the Replace field then all empty paragraphs can be removed with Replace All.

Now you can add back an empty paragraph between each filled paragraph. Select your text, in Find and Replace: In Find enter $ in Replace enter &\n

Alternative Find & Replace
Instead, you could use extension Alternative Find & Replace. In that:

  • In the Find field enter ^$\p*
  • In the Replace field enter \p
  • Replace All
1 Like