The Computer Oracle

Microsoft Word: delete blank lines or empty paragraphs

--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Darkness Approaches Looping

--

Chapters
00:00 Microsoft Word: Delete Blank Lines Or Empty Paragraphs
01:06 Accepted Answer Score 11
01:30 Answer 2 Score 0
01:59 Thank you

--

Full question
https://superuser.com/questions/455910/m...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#microsoftword #microsoftword2007

#avk47



ACCEPTED ANSWER

Score 11


@mutzmatron is right, replacing ^p^p with ^p actually is the proper way.

However, when my documents contains e.g. ^p^p^p^p or similar, it won't pick them all up and will again leave ^p^p. So I've to run this search/replace operation a few times until all cases have been covered.




ANSWER 2

Score 0


Another way by using Wildcard:

Tick "Use wildcards" in search and replace window.

search: (^13)^13{1,}.

replace:\1.

^13 is the paragraph mark under wildcard mode. It would search for one paragraph mark followed by at least one other paragraph mark(s). Only keep the first paragraph mark, which marks the end of a non-empty line.