This question already has an answer here:
- Did Mac OS Lion switch to using line feeds (LF '\n') for line breaks instead of carriage returns (CR '\r')? 1 answer
- Opening a text document with Windows Notepad [duplicate] 1 answer
- Does the Windows 7 Notepad understands the different line-endings of Unix, Mac and Windows? 3 answers
- Notepad ignoring linebreaks [duplicate] 7 answers
How come when I write a Java program on my Mac, and then try to open it on my Windows PC, all of the white space is gone and it displays it all in one line? And how can I avoid this?