Skip to content

Don't add end of line to empty CSS - #3723

Merged
j-f1 merged 1 commit into
prettier:masterfrom
hudochenkov:dont-add-end-of-line-to-empty-CSS-issue-3440
Jan 11, 2018
Merged

j-f1 merged 1 commit into
prettier:masterfrom
hudochenkov:dont-add-end-of-line-to-empty-CSS-issue-3440

Conversation

@hudochenkov

Copy link
Copy Markdown
Contributor

Fixes #3440.

The problem exists for an empty file, and for a file with a single space (no line-break after it). An output is different for babylon and css parsers in playground, though the input is the same and valid.

There is a tests/css_empty directory, but its content isn't relevant to empty files.

@j-f1
j-f1 merged commit b67fd8e into prettier:master Jan 11, 2018
@j-f1

j-f1 commented Jan 11, 2018

Copy link
Copy Markdown
Member

Thank you!

@hudochenkov
hudochenkov deleted the dont-add-end-of-line-to-empty-CSS-issue-3440 branch January 11, 2018 21:09
@lock lock Bot added the locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting. label Jan 18, 2019
@lock lock Bot locked as resolved and limited conversation to collaborators Jan 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants