If the OS is windows, convert line endings from LF to CRLF when saving
Converted spaces to tabs to maintain formating
Merge pull request #138 from rprouse/issue/136

If the OS is windows, convert line endings from LF to CRLF when saving