Skip to content

Preserve line endings that libsass hands us #161

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

Merged
merged 1 commit into from
Aug 24, 2016
Merged

Preserve line endings that libsass hands us #161

merged 1 commit into from
Aug 24, 2016

Conversation

asottile
Copy link
Member

Resolves #160

@coveralls
Copy link

coveralls commented Aug 24, 2016

Coverage Status

Coverage decreased (-0.01%) to 94.454% when pulling 540190f on asottile:preserve_line_endings into 9de489d on dahlia:master.

@@ -749,7 +744,7 @@ def test_sassc_output(self):
assert exit_code == 0
assert self.err.getvalue() == ''
assert self.out.getvalue() == ''
with open(tmp) as f:
with io.open(tmp, encoding='UTF-8', newline='') as f:
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this acts as a regression test

@asottile
Copy link
Member Author

@dahlia thoughts on this? It changes behaviour but makes our wrapper both more transparent and more like the other implementations.

b(A_EXPECTED_CSS_WITH_MAP),
r.data
r.data,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a comma of imperfection :)

Copy link
Member Author

@asottile asottile Aug 24, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trailing commas are a best practice :D

@dahlia
Copy link
Member

dahlia commented Aug 24, 2016

Looks good to me!

@asottile asottile merged commit 5bee6cd into sass:master Aug 24, 2016
@asottile asottile deleted the preserve_line_endings branch August 24, 2016 18:28
@asottile
Copy link
Member Author

<3

@rbu rbu mentioned this pull request Oct 10, 2016
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.

4 participants