scss-mode icon indicating copy to clipboard operation
scss-mode copied to clipboard

Weird parenthess indentation

Open PythonNut opened this issue 11 years ago • 4 comments

scss-mode indents parentheses like this:

a {
  background: linear-gradient(to bottom,
                              red,
                              blue
                             );
}

Which is very strange.

a {
  background: linear-gradient(to bottom,
    red,
    blue
  );
}

Is more inline with general SCSS style (and coding styles that I see in the wild).

PythonNut avatar Feb 15 '14 21:02 PythonNut

it also indents this wrongly (the &:hover part):

.navbar-default
{
  background-color: $bgDefault;
  border-color: $bgHighlight;

  .navbar-brand
  {
    line-height: 50px;
    padding: 0;
    color: $colDefault;

    &:hover, &:focus
                 {
                   color: $colHighlight;
                 }
  }
}

Probably related to #23

Silex avatar Oct 09 '14 15:10 Silex

I discovered this comes from css-mode and only happens when { is on a line of its own.

Silex avatar Feb 20 '15 16:02 Silex

@Silex I have this even when the bracket is on the previous line:

svg .node {

  a:hover, a:focus {
             text-decoration: none;
  }
}

art-solopov avatar Jul 09 '15 08:07 art-solopov

Same issue for me as @art-solopov

Mrngilles avatar Jul 11 '16 11:07 Mrngilles