stylefmt icon indicating copy to clipboard operation
stylefmt copied to clipboard

Incorrect spacing before brackets

Open joaocunha opened this issue 8 years ago • 1 comments

Stylefmt is removing the spaces between the closing parenthesis and opening brackets ( ){ ) in this snippet:

.m-members-list--responsive {
  margin-right: bm(-2);

  .m-members-list__line-item {
    @include media($tablet--only){
      @include columns--two;
    }

    @include media($desktop-small--only){
      @include columns--two;
    }

    @include media($desktop-medium--only){
      @include columns--two;
    }

    @include media($desktop-large--up){
      @include columns--three;
    }
  }
}

joaocunha avatar Nov 17 '16 16:11 joaocunha

A similar error occurs in the case of SCSS syntax. I'm using sublime-stylefmt. It removes space (&{) and adds line break before @at-root: Before:

max-height: 700px;
@at-root .tab-side & {

After:

max-height: 700px;

@at-root .tab-side &{

nickensoul avatar Aug 10 '18 13:08 nickensoul