astrilchuk / sd2xmltv

A Schedules Direct to xmltv converter
MIT License
16 stars 8 forks source link

Line endings #10

Closed cscashby closed 8 years ago

cscashby commented 8 years ago

Not sure why but when cloning on Linux / Mac the line endings default to Windows (^M) not Unix.

Running the command sed -i -e 's/\r/\n/g' filename fixes the problem, but it's worth fixing .gitattributes or writing the file correctly so that git will autodetect the file type.

astrilchuk commented 8 years ago

Thanks for pointing this out. I code on a Mac so I'm very confused how the line endings in sd2xmltv.py became ^M. I will also add .gitattributes as you recommend.