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.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login