Skip to Content
1

WebIDE Beautifier removes whitespace in CSS file

Jan 04 at 02:55 PM

70

avatar image
Former Member

Hello Community,

I have a problem with the Beautify function in WebIDE.

The following two statements are not the same:

.class1.class2 {...}

.class1 .class2 {...}

WebIDE knows that. The beautifier does not remove the whitespace.

The following tow statements are not the same, too:

.class1:not(.class2) {...}

.class1 :not(.class2) {...}

When I execute the Beautify function the whitespace of the second statement will be removed.

That's a bug, isn't it?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Iftah Peretz
Jan 05 at 11:55 AM
0

I agree.

Not (no pun intended) only in classes. Also

body :not(p) {
  text-decoration: underline;
}

After Beautify gets to be a different rule:

body:not(p) {
  text-decoration: underline;
}

Do you agree Michal Keidar ?

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Thanks - I will check it and report internally.

Cc: Former Member

Regards,
Michal.

1