You can follow the technique as shown in the following screenshot:
Find what: ^\r\n
Replace with: keep this empty
Search Mode: Regular expression
Wrap around: selected
Source: https://stackoverflow.com/questions/3866034/removing-empty-lines-in-notepad