dart-sass icon indicating copy to clipboard operation
dart-sass copied to clipboard

Less-than-ideal formatting of loud comments with weird indentation

Open nex3 opened this issue 7 years ago • 0 comments

The following input:

div {
     /* one
  *     two
  *     three
  */
  top: 10px;
}

produces this output:

div {
  /* one
  *     two
  *     three
  */
  top: 10px;
}

This isn't ideal, since it doesn't preserve the indentation of the first line relative to the rest of the comment. I'd expect the output to match the input. See also https://github.com/sass/libsass/issues/2566.

nex3 avatar Mar 22 '18 22:03 nex3