Sublime-CSS-Format icon indicating copy to clipboard operation
Sublime-CSS-Format copied to clipboard

wrong formatting of less comments

Open thecotne opened this issue 9 years ago • 4 comments

when i format this

// body {
//  clear: both;
// }

i got this (note: it has syntax error)

// body {
    //  clear: both;
    //
}

expected result

// body {
//  clear: both;
// }

thecotne avatar Mar 19 '15 12:03 thecotne

Additionally, wrapping a complete CSS rule in comments will increase the indent of the property each time the file is saved!

/*li:before {
    display: none;
}*/

Becomes...

/*li:before {
        display: none;
}*/

scotty6435 avatar Apr 26 '15 09:04 scotty6435

@scotty6435 that's different issue

thecotne avatar Apr 26 '15 12:04 thecotne

@thecotne I see, didn't spot the missing comment. It does still indicate there is a comment parsing problem.

scotty6435 avatar Apr 26 '15 13:04 scotty6435

Getting the same issues as @thecotne and @scotty6435

Original image

First save image

Second save image

Expected result: no changes.

leptest avatar May 28 '15 16:05 leptest