Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

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