csscomb.js icon indicating copy to clipboard operation
csscomb.js copied to clipboard

Declaration newline failing to work.

Open ghost opened this issue 7 years ago • 5 comments

Using CSScomb CLI with a configuration made from the online build tool. Even though I am specifying to insert a newline after each declaration, CSScomb is making it single-lined.

Node.js: v7.6.0 NPM: v4.1.2

Input:

*::-webkit-scrollbar-track
{
    color: #222831; 
    border-style: solid;  
    background-color: white;
}

Output:

*::-webkit-scrollbar-track
{
    color: #222831;  border-style: solid;  background-color: white;
}

Configuration:

{
    "remove-empty-rulesets": true,
    "always-semicolon": true,
    "color-case": "upper",
    "block-indent": "  ",
    "color-shorthand": true,
    "element-case": "lower",
    "eof-newline": false,
    "leading-zero": true,
    "quotes": "single",
    "sort-order-fallback": "abc",
    "space-before-colon": "",
    "space-after-colon": " ",
    "space-before-combinator": " ",
    "space-after-combinator": " ",
    "space-between-declarations": "\n",
    "space-before-opening-brace": " ",
    "space-after-opening-brace": "\n",
    "space-after-selector-delimiter": " ",
    "space-before-selector-delimiter": "",
    "space-before-closing-brace": "\n",
    "strip-spaces": true,
    "tab-size": true,
    "unitless-zero": true,
    "vendor-prefix-align": true
}

ghost avatar Apr 20 '17 21:04 ghost

Have the similar issue.

kostia-hontarau avatar Aug 18 '17 09:08 kostia-hontarau

@KostiaGontarev @UNST4BL3 what OS ? (I'm might be not related, but still)

obenjiro avatar Aug 18 '17 12:08 obenjiro

I believe it was on Windows 10.

ghost avatar Aug 18 '17 16:08 ghost

I believe it was on Windows 10.

That's right :)

kostia-hontarau avatar Aug 23 '17 13:08 kostia-hontarau

Works as expected with the latest release on MacOS. This looks related to the newline issue being worked on at #606.

jdalton avatar May 07 '19 07:05 jdalton