Skip to content

Improve the printing of CSS at-rules - #3896

Merged
alexander-akait merged 2 commits into
masterfrom
fix-css-improve-at-rules-print
Feb 7, 2018
Merged

alexander-akait merged 2 commits into
masterfrom
fix-css-improve-at-rules-print

Conversation

@alexander-akait

@alexander-akait alexander-akait commented Feb 5, 2018 •

Copy link
Copy Markdown
Member

Also improve tests and refactor.

@j-f1 j-f1 changed the title Fix css improve at rules print Improve the printing of CSS at-rules Feb 6, 2018
@alexander-akait

alexander-akait commented Feb 6, 2018 •

Copy link
Copy Markdown
Member Author

@lydell @j-f1 friendly ping, seems problem in 4 production
@azz sorry, accidentally mentioned you 😄

@lydell

lydell commented Feb 6, 2018

Copy link
Copy Markdown
Member

Do you have an example of something that prints better after this?

@each $animal in((puma), (sea-slug), (egret), (salamander)) {
}
@each $animal in ( (puma), (sea-slug), (egret), (salamander)) {
@each $animal in ((puma), (sea-slug), (egret), (salamander)) {

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@lydell no extra spaces

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@include mix(1px, 2px, $arg2: 10, 2px 4px 6px);
@include mix(1px, 2px, $arg2:10, 2px 4px 6px);
@include mix(1px, 2px, $arg2: 10, 2px 4px 6px);

@alexander-akait alexander-akait Feb 7, 2018 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@lydell Always spaces after :

@alexander-akait

Copy link
Copy Markdown
Member Author

Also refactor and more tests

@alexander-akait
alexander-akait merged commit 0e1358b into master Feb 7, 2018
@alexander-akait
alexander-akait deleted the fix-css-improve-at-rules-print branch February 7, 2018 10:33
lipis added a commit to lipis/prettier that referenced this pull request Feb 13, 2018
* 'master' of github.com:lipis/prettier:
  Add Facebook to users (prettier#3867)
  Improve the printing of CSS at-rules (prettier#3896)
  fix(css): comments in selectors (prettier#3909)
  Use the animated logo on the website's landing page (prettier#3910)
@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.

2 participants