When You are working with different operating systems you encounter different line endings. Editing a file on a Linux system and opening it on a windows machine can give a weird result.
Here is a short overview which system uses which command characters:
|Windows||CR + LF|
|Mac OS <= 9||CR|
|Mac OS X||LF|