Sometimes I just need to search and replace to add the CR/LF at the end of each line. Here's the solution I find from other's post. List here for quick reference:
Notepad++.
- Open your text file in Notepad++. Then navigate to menu View > Show Symbols > Show all characters.
- Highlight one of those squares in your text, then copy it to clipboard.
- Press Ctrl+H.
- Inside "Find what:" textbox, paste (Ctrl+V).
- Inside "Replace with:", type \r\n
- In search options, choose "Extended (\r, \n, \t, \0, \x...)".
- Replace All.
- Verify that now you can see each line ends with CR LF box.
- Navigate to menu View > Show Symbols > uncheck show all characters.
- Save your file if all worked fine.
This is the original post by yusufat: