I have some python code managed with GIT and developed in Spyder (all on windows 7, python 2.7.10, winpython). Somehow the code is broken since a few days and when opening files in Spyder it tells me, that the file has mixed line endings, which are automatically corrected. This correction leads to the introduction of a newline after each line of code.
I basically have two questions:
- Where can such a mix-up stem from? To my best knowledge, the affected code has never been opened in another editor, on another plattform etc.
- How can I fix the files in a way they are still compatible with their GIT ancestors?