There's also "Join lines". If on OSX, select all your text, and press CMD-J a few times, and it will collapse your selection by line, removing the line breaks.
Edit: This approach will leave you with everything on one line, which is not what you asked for.