Skip to content
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 newline in function arrays #115

Closed
ghost opened this issue Aug 25, 2014 · 0 comments
Closed

Extra newline in function arrays #115

ghost opened this issue Aug 25, 2014 · 0 comments

Comments

@ghost
Copy link

ghost commented Aug 25, 2014

Edit: This is just issue #464 in the js-beautify library.

When formatting [function(){},function(){}] it turns into this:

[
  function () {},
  function () {}
]

When formatting again, we get an extra newline before the first function

[

  function () {},
  function () {}
]

which is not the same as I get at http://jsbeautifier.org/.

This seems to only affect the function keyword specifically, as [function,function] also formats in the wrong way. I have tried changing multiple settings, but no combination seems to be able to fix this.

@ghost ghost closed this as completed Aug 25, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants