-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extra space after pseudo-elements within :not() #618
Comments
Is this the same as #557? |
If the patch for #557 fixes the space between all colon and pseudo-elements then yes. In this instance the extra space has only occured on |
Um... is there a patch for #557 that I don't know about? |
No, sorry I meant you might be able to fix it with the same solution. |
Okay, good to have another example. |
@jessefisher, This appears to be fixed. On http://jsbeautifier.org/ this remains unchanged: <style>
&:not(:last-child) {}
</style> Can you verify? |
This is still broken. This code:
Results in:
|
I am also experiencing this issue. |
Same here |
Same. I find if compiling the following:
The output is:
Notice the first |
I am facing this bug using brackets-beautify. |
Sorry for the delay @bitwiseman I was also having this issue using brackets-beautify, but I don't remember how I ended up posting the issue here instead. The code below works fine in brackets-beautify now, but on http://jsbeautifier.org/ the code inside div{} still has the issue with the extra space on both lines as @alan-cole has said. <style>
[type="checkbox"]:not(:checked) {
background-color: transparent;
}
div {
&:not(:last-child) {}
[type="checkbox"]:not(:checked) {
background-color: transparent;
}
}
</style> |
Beautifying this code:
&:not(:last-child) {}
Results in this:
&:not(: last-child) {}
The extra space causes an error, which tries to identify the line above as an invalid property error.
Thanks for the great extension!
The text was updated successfully, but these errors were encountered: