sass / ruby-sass

The original, now deprecated Ruby implementation of Sass
https://sass-lang.com
MIT License
183 stars 38 forks source link

sass-convert sass to sass not spacing correctly between commas #53

Closed nex3 closed 6 years ago

nex3 commented 6 years ago

From https://github.com/sass/sass/issues/2422:

I'm a contributor to the atom-beautify package, which uses sass-convert to beautify SASS files. I noticed an issue with our CI builds where converting sass to sass doesn't remove redundant spaces between commas and doesn't add a space after a commas if it's missing in version 3.5.4. Consider the below before and after code when I run sass-convert from and to sass. Notice that html,body doesn't have a space after the comma, and ul, ol has three spaces instead of one. I uninstalled 3.5.4 and tried 3.5.3 and it did take care of the spaces.

Before

nav
  ul
    padding: 0

    margin: 0
    list-style: none

  li
    display: inline-block

  a
    display: block
    text-decoration: none

    padding: 6px   12px

html,body,
ul,   ol
  margin:  0
  padding: 0

After

nav
  ul
    padding: 0
    margin: 0
    list-style: none

  li
    display: inline-block

  a
    display: block
    text-decoration: none
    padding: 6px 12px

html,body,
ul,   ol
  margin: 0
  padding: 0
nex3 commented 6 years ago

I'm closing this issue as "on ice" because Ruby Sass is deprecated and no additional features are planned for it.