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

Partial fix https://github.com/morishitter/stylefmt/issues/86 #320

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Partial fix https://github.com/morishitter/stylefmt/issues/86 #320

wants to merge 2 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Aug 28, 2017

Example:
-- before:

.test {
  font: 'italic small-caps bold 12px arial, sans-serif',14px;

  background: red,
   green , yellow;
  background-color:
    rgba(0, 0, 0, .4),

       rgba(0, 0, 0, 0);
}

-- actual:

.test {
  font: 'italic small-caps bold 12px arial, sans-serif', 14px;
  background: red, green, yellow;
  background-color: rgba(0, 0, 0, .4), rgba(0, 0, 0, 0);
}

And there result is (expected, fixed now):

.test {
  font: 'italic small-caps bold 12px arial, sans-serif', 14px;
  background: red,
    green, yellow;
  background-color:
    rgba(0, 0, 0, .4),
    rgba(0, 0, 0, 0);
}

* Partial fix #86
Now when css contain new lines in decl value, stylefmt only format and collaps spaces, but keep new lines

Example:
-- before:
.test {
  font: 'italic small-caps bold 12px arial, sans-serif',14px;

  background: red,
   green , yellow;
  background-color:
    rgba(0, 0, 0, .4),

       rgba(0, 0, 0, 0);
}
-- actual:
.test {
  font: 'italic small-caps bold 12px arial, sans-serif',14px;
  background: red, green, yellow;
  background-color: rgba(0, 0, 0, .4), rgba(0, 0, 0, 0);
}
And there result is (expected, fixed now):
.test {
  font: 'italic small-caps bold 12px arial, sans-serif',14px;
  background: red,
    green, yellow;
  background-color:
    rgba(0, 0, 0, .4),
    rgba(0, 0, 0, 0);
}
@ghost ghost changed the title SHA-1: 5c79bca33d742cd60ed4df894620b06e44c0db2e Partial fix #86 Aug 28, 2017
@ghost ghost changed the title Partial fix #86 Partial fix https://github.com/morishitter/stylefmt/issues/86 Aug 28, 2017
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.

Option to follow only rules described in .stylelintrc
0 participants