-
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
empty braces should always collapse to {} on the same line #237
Comments
While removing expand-strict, found that brace tests were uneven. Made all tests appear for all three settings, and adjusted for each. There are still some minor odd behaviors around empty braces, but they are non-breaking. Closes beautifier#236, beautifier#237
While removing expand-strict, found that brace tests were uneven. Made all tests appear for all three settings, and adjusted for each. There are still some minor odd behaviors around empty braces, but they are non-breaking. Closes beautifier#236, beautifier#237
@bitwiseman i still have this issue! cant seem to get this:
always get this:
|
"Still have this issue" - where? As you can see from https://github.com/bitwiseman/js-beautify/blob/bc62583fd53340edc1e1b7f4911bfbe32b9a2ee5/js/test/beautify-tests.js on line 468, this scenario is covered. So, if you do this from the command-line in master using node or python it should work. It looks like @einars just did a few commits and merged to the web. Try it again. |
Empty braces should always collapse. this would fix edge cases like this:
to become this instead:
same would be for
to become this instead:
The text was updated successfully, but these errors were encountered: