cssbeautify icon indicating copy to clipboard operation
cssbeautify copied to clipboard

Incorrect comment placement

Open inko9nito opened this issue 12 years ago • 4 comments

This issue is exposed in the original sample code. The comment should be placed after the semicolon:

Screenshot

inko9nito avatar Sep 17 '13 15:09 inko9nito

I dont't really like the comments before the semicolon. :-1: Any info about what's correct?

kinduff avatar Sep 18 '13 06:09 kinduff

As stated in my original issue, the comment should appear after the semicolon:

background-color: #333; /* darkgrey */

inko9nito avatar Sep 18 '13 14:09 inko9nito

Oh, my bad. :+1: then, that's the correct way imho.

kinduff avatar Sep 18 '13 15:09 kinduff

This in fact triggers a bug.

Before:

menu{color:red; /*foobar*/}

Beautified:

menu {
    color: red;
 /*foobar*/;
}

The unnecessary semicolon there is wrong.

ariya avatar Oct 11 '13 17:10 ariya