Different operating systems store simple text files differently.

If you are using linux, it will automatically create text files with "LF" (line feed).
If you are on windows, it will create "CRLF" (carriage return + line feed).
On Mac OS it will create "CR" (carriage return).

So, on linux, you don't have to worry.
On windows and mac you have to explicitly convert the text file to "LF". On windows for example, notepad cannot do that but notepad++ for example.

In case you want to know more: https://en.wikipedia.org/wiki/CRLF