PyBites-Open-Source / eatlocal

This package helps users solve PyBites code challenges on their local machine.
MIT License
20 stars 9 forks source link

CRLF line terminators #3

Closed bbelderbos closed 2 years ago

bbelderbos commented 2 years ago

Upon downloading a Bite we get these:

image

:e ++ff=unix in Vim reveals them (https://stackoverflow.com/a/27259548)

Not sure if this utility should nuke them or that's something we need to do pre-zip on our platform?

One user reported he was doing perl -i -e 's/\r//' *.py as extra step after download + extract.

rhelmstedter commented 2 years ago

I could not reproduce any error. As far as I know, ^M is just a carriage return. When I added new lines, closed the file, and reopened in vim with :e ++ff=unix They still appeared. Per our conversation, I don't think we need to worry about this. (I am about to close my first ever issue on GitHub exciting times).

bbelderbos commented 2 years ago

Thanks for confirming @rhelmstedter