csscomb / csscomb.js

CSS coding style formatter
http://csscomb.com/
MIT License
3.29k stars 457 forks source link

Can spaces before first selector be removed? #621

Closed BartolomeSintes closed 2 years ago

BartolomeSintes commented 4 years ago

CSSComb configuration in Visual Studio Code:

"csscomb.preset": {
    "block-indent": "    ",
    "space-after-opening-brace": "\n",
    "space-before-closing-brace": "\n"
}

Initial CSS code (notice the blank spaces before selectors):

    h1 { color: black; }
    h2 { color: black; }

Obtained result (blank spaces before the first selector are not removed):

    h1 {
    color: black;
}
h2 {
    color: black;
}

Expected result (both blank spaces before first and second selector removed)

h1 {
    color: black;
}
h2 {
    color: black;
}

Is it a CSSComb bug? Is there a CSSComb configuration option that removes the spaces before the first selector? Thanking you in advance,

agomcue486 commented 3 years ago

Seems to be fixed.

BartolomeSintes commented 2 years ago

Yes. I will close this bug, then.