2

I want to get rid of blank lines.

Only solutions I see online are: \r\n\r\n

Firstly, I don't know what that is supposed to do. Secondly, it doesn't work anyways.

Change from:

1234

1234

1234

Change to:

1234
1234
1234
main--
  • 3,873
  • 1
  • 16
  • 37
Alex Tam
  • 21
  • 1
  • 3
  • 1
    Possible duplicate of [Removing empty lines in Notepad++](http://stackoverflow.com/questions/3866034/removing-empty-lines-in-notepad) – AdrianHHH Jan 30 '16 at 09:51
  • See also http://stackoverflow.com/questions/5381444/finding-and-replacing-blank-lines-regex-in-notepad/16882536#16882536 – AdrianHHH Jan 30 '16 at 09:52

1 Answers1

3

There is even a function for that in the menu, you find it under

  • Edit -> Line Operations -> Remove empty lines
  • Edit -> Line Operations -> Remove empty lines (Containing blank characters)

The second option removes also lines that contain only spaces.

Lars Fischer
  • 9,135
  • 3
  • 26
  • 35