csscomb / sublime-csscomb

Sublime plugin for CSScomb—CSS coding style formatter
398 stars 61 forks source link

Wrong indentation #78

Closed alexdevero closed 8 years ago

alexdevero commented 8 years ago

Today I found a bug in indentation. I set indentation to 2 spaces. Now, CSSComb uses 1 space to indent code.

My config:

"block-indent": "  ",
"always-semicolon": true,
"color-case": "lower",
"color-shorthand": true,
"element-case": "lower",
"eof-newline": true,
"leading-zero": false,
"quotes": "double",
"remove-empty-rulesets": true,
"rule-delimiter": "\n",
"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": "\n",
"space-before-selector-delimiter": "",
"space-before-closing-brace": "\n",
"strip-spaces": true,
"tab-size": 2,
"unitless-zero": true,
"vendor-prefix-align": true,

Before running CSSComb:

button {
  overflow: visible;
  margin: 0;
  font: inherit;
  text-transform: none;
}

After running CSSComb:

button {
 overflow: visible;
 margin: 0;
 font: inherit;
 text-transform: none;
}

Update: the problem was caused by external csscomb.json used for gulp plugin.