Skip to content

Instantly share code, notes, and snippets.

@romuloctba
Created October 3, 2015 23:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save romuloctba/759bfd227e7ee768d9c3 to your computer and use it in GitHub Desktop.
Save romuloctba/759bfd227e7ee768d9c3 to your computer and use it in GitHub Desktop.
Hot to remove extra blank lines on files

How to Remove extra blank lines on files

Simple, just do a search and replace using regex.

At Sublime Text, just ctrl+h and click the Regular Expression icon (The first on the left, like the Sum Symbol)

  • Find What: [\r\n]{2,}
  • Replace With: \n
@romuloctba
Copy link
Author

Update: Use GIT and this won`t happen
(It converts CRLF to LF)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment