csscomb / csscomb.js

CSS coding style formatter
http://csscomb.com/
MIT License
3.29k stars 457 forks source link

EOL error on Windows and CRLF with SASS mixins #593

Open Storm203 opened 6 years ago

Storm203 commented 6 years ago

When using CSSComb on a SASS file that has multiple includes in a single selector, in a file on Windows that is using CRLF for EOL, the indenting gets all buggy:

Before CSSComb:

#created_by_container{
    @include display-flex;
    @include flex-direction(column);
    @include justify-content(center);
    @include align-items(center);
}

After CSSComb:

#created_by_container{
    @include display-flex;

@include flex-direction(column);

@include justify-content(center);

@include align-items(center);
}

This does not occur when using LF only, however there is no git option to check out CRLF as LF and then commit back as CRLF (only the reverse exists).

tonyganch commented 5 years ago

Possibly the same issue as #592

jdalton commented 5 years ago

Related to #367.