Here is the solution I choose. It also addresses my larger problem, that I have line breaks in paragraphs when I want continuous text.
That is, I want to turn the following:
<===== START EXAMPLE =====>
Some text followed by four paragraph marks that should only be two.
A paragraph
with paragraph marks
that should be continuous.
<===== END EXAMPLE =====>
Into this:
<===== START EXAMPLE =====>
Some text followed by three paragraph marks that should only be two.
A paragraph with paragraph breaks that should be continuous.
<===== END EXAMPLE =====>
Steps to the solution, using regular find and replace:
-
Replace all “$” with “paragraph1”.
-
Replace all “paragraph1paragraph1paragraph1paragraph1” with “paragraph4”.
-
Replace all “paragraph1paragraph1paragraph1” with “paragraph3”.
-
Replace all “paragraph1paragraph1” with “paragraph2”.
-
Replace all “paragraph1” with " " (i.e. a space).
-
Replace all “paragraph4” with “\n\n”.
-
Replace all “paragraph3” with “\n\n”.
-
Replace all “paragraph2” with “\n\n”.
This is recordable by macro using regular find and replace.
Always a way!