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

Javascript comment in last line doesn't beautify well #1046

Closed
giovannibenussi opened this issue Jul 5, 2016 · 4 comments
Closed

Javascript comment in last line doesn't beautify well #1046

giovannibenussi opened this issue Jul 5, 2016 · 4 comments
Assignees
Milestone

Comments

@giovannibenussi
Copy link

I have found that in javascript with this code the beautification doesn't work well:

res.json({  
        success: true,  
        message: []  
    })  
    // console.timeEnd("Response time")

However, if I delete the last line the beautification works well:

res.json({
    success: true,
    message: []
})

If I remove the comment, it also works:

res.json({
    success: true,
    message: []
})
console.timeEnd("Response time")

Regards!

@prettydiff
Copy link
Collaborator

Which beautifier are you using to beautify JavaScript? The default is JS Beautify.

@giovannibenussi
Copy link
Author

It is JS Beautify

@prettydiff
Copy link
Collaborator

I recommend opening an issue at https://github.com/beautify-web/js-beautify/issues

@giovannibenussi
Copy link
Author

Ok, thankyou !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants
@prettydiff @giovannibenussi @Glavin001 and others