How can I replace empty lines in Notepad++? I tried a find and replace with the empty lines in the find, and nothing in the replace, but it did not work; it probably needs r
/n/r assumes a specific type of line break. To target any blank line you could also use:
/n/r
^$
This says - any line that begins and then ends with nothing between. This is more of a catch-all. Replace with the same empty string.