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

Indentation of case labels #367

Closed
russellw opened this issue Dec 10, 2013 · 4 comments
Closed

Indentation of case labels #367

russellw opened this issue Dec 10, 2013 · 4 comments

Comments

@russellw
Copy link

Any chance of making the program not indent case labels? That is, instead of:

switch (x) {
    case 1:
        etc;
}

this instead:

switch (x) {
case 1:
    etc;
}
@bitwiseman
Copy link
Member

It looks to me like the second example is the formatted output I get on http://jsbeautifier.org/ .

@russellw
Copy link
Author

Hmm you're right so it is, but using the command line version - NPM package, version 1.4.2, just installed today - I get output like the first example. Any idea why the difference? Is the web interface using a new version that hasn't been released as an NPM package yet or something?

@sathomas
Copy link

The command line option --good-stuff will result in the desired behavior.

@russellw
Copy link
Author

So it does, thanks!

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

3 participants