sublimetext-codeformatter icon indicating copy to clipboard operation
sublimetext-codeformatter copied to clipboard

SCSS nested indenting buggy after commit #290

Open bcreeves opened this issue 7 years ago • 1 comments

Since commit #290 the closing brackets and subsequent rules in a nest have less indentation than there should be depending on their nested depth. With indenting set to 4 spaces:

Expected

.test {
    margin: 0;
    .nest1 {
        margin: 0;
        .nest2 {
            margin: 0;
            .nest3 {
                margin: 0;
                .nest4 {
                    margin: 0;
                }
            }
          
            .test1 {
              margin: 0;
            }
        }
    }
}

Actual

.test {
    margin: 0;
    .nest1 {
        margin: 0;
        .nest2 {
            margin: 0;
            .nest3 {
                margin: 0;
                .nest4 {
                    margin: 0;
               }
          }
          
          .test1 {
              margin: 0;
         }
    }
}
}

bcreeves avatar Mar 02 '17 19:03 bcreeves

As per https://github.com/akalongman/sublimetext-codeformatter/pull/290#issuecomment-282575462 previously it used css formatter so it was failing on scss specific rules. Now it is failing because original scss python formatting library was never written properly. When I get a chance I'll try to fix it.

rolandas-valantinas avatar Mar 03 '17 15:03 rolandas-valantinas