Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

always use Unix LF end of lines #30

Merged
merged 2 commits into from Apr 7, 2016

Conversation

anthrotype
Copy link
Member

Since we are writing files in "text" mode, by default Python uses the native os.linesep, which on Windows is CR+LF ("\r\n").

We want all line endings to be normalized as Unix line feeds. By passing a newline="\n" argument to io.open, we make sure this is the case on every platform, including Windows.

/cc @moyogo

Cosimo Lupo added 2 commits April 7, 2016 13:56
Since we are writing output file in "text" mode, by default Python uses
the native `os.linesep`, which on Windows is CRLF ("\r\n").

We want all line endings to be normalized as Unix line feeds.
By passing a `newline="\n"` argument to `io.open`, we make sure this is
the case on every platform, including Windows.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) to 91.667% when pulling 3160ae4 on daltonmaag:lf-eol into 58ab51f on unified-font-object:master.

@anthrotype
Copy link
Member Author

BTW, the Appveyor build did not start automatically -- and actually that was the most important one to check since this patch is kind of Windows specific... (the tests do pass on my local Windows machine).

On the front page of ufoNormalizer, the Appveyor badge is pointing to an Appveyor account owned by @miguelsousa: https://ci.appveyor.com/project/miguelsousa/ufonormalizer/history

Maybe it needs to be @typesupply who needs to set up Appveyor for this repo? I'm not sure...

@typesupply typesupply merged commit aa62116 into unified-font-object:master Apr 7, 2016
@anthrotype anthrotype deleted the lf-eol branch April 8, 2016 08:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants