- Highlight the lines you want to join (or use Ctrl + A to select everything)
- Choose Edit → Line Operations → Join Lines from the menu or press Ctrl + J.
It will put in spaces automatically if necessary to prevent words from getting stuck together
Ref:http://superuser.com/questions/518229/how-to-remove-linebreaks-in-notepad