Removing multiple blank lines
-
I am looking for a way to replace multiple consecutive blank lines with a single blank line via find/replace or macro. Unfortunately, I could not find anything about this anywhere and wonder if this is even possible.
If someone has an idea about this, then always here with it :-) -
Find:
^(\R)+
Replace:${1}
Search mode: Regular expressionThere are certainly other expressions that will do it as well.
-
@Alan-Kilborn Thanks, works great
-
and why don’t use command from
Edit - Line operations - Remove empty lines
?you can also assign a keyboard letter for this command …
-
@namx3249 said in Removing multiple blank lines:
and why don’t use command from Edit - Line operations - Remove empty lines ?
Because OP wanted a “single blank line” to remain after the operation.