I have documents with one or more blank lines scattered.
How do I squeeze it to a only one blank line?
Thank you very much for the assist.
how to squeeze multiple blank lines to one?
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
-
ben_josephs
- Posts: 2464
- Joined: Sun Mar 02, 2003 9:22 pm
Do you mean you want each run of consecutive blank lines reduced to a single blank line?
If the blank lines are empty,
If the blank lines are empty,
If the blank lines may contain spaces and tabs, you have to useFind what: \n\n\n
Replace with: \n\n
[X] Regular expression
Replace All -- do this repeatedly until it beeps
Find what: \n[ \t]*\n[ \t]*\n