Are you using a UNIX format editor or Windows Notepad?
If you have Windows then install the free notepad++ and set it to LF only.
By default all Windows and MSDOS common text editors insert LF and CR.
By default all UNIX, BSD, Linux (all kinds), current Mac (maybe since 2002) and Solaris use LF only. Internally very many things use a UNIX like standard. Android is partly Linux.
Mac OS9 and earlier might have been CR only.
https://en.wikipedia.org/wiki/Newline#Representation