-
Notifications
You must be signed in to change notification settings - Fork 454
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
Vue maxPreserveNewlines one less than setting for js/css #1968
Comments
This issue has been automatically marked as stale because it has not had recent activity. If this is still an issue, please add a comment. It will be closed if no further activity occurs. Thank you for your contributions. |
This is still an issue. |
This issue has been automatically marked as stale because it has not had recent activity. If this is still an issue, please add a comment. It will be closed if no further activity occurs. Thank you for your contributions. |
Still an issue |
@szeck87 This issue does not repro on http://jsbeautifier.org/ . |
My bad, it goes through a few different pipelines. |
Yea, a lot issues with https://github.com/Glavin001/atom-beautify/blob/master/src/beautifiers/vue-beautifier.coffee. For one, we're not transforming the options that are passed into prettydiff. |
@szeck87 No problem. |
This issue has been automatically marked as stale because it has not had recent activity. If this is still an issue, please add a comment. It will be closed if no further activity occurs. Thank you for your contributions. |
Description
I have set max_preserve_newlines: 2
Only the html template seems to get the correct amount of newlines.
Input Before Beautification
This is what the code looked like before: (3 newlines for all)
Expected Output
The beautified code should have looked like this: (2 newlines for all)
Actual Output
The beautified code actually looked like this: (2 for html 1 for js/css)
Steps to Reproduce
Atom Beautify: Beautify Editor
Debug
Here is a link to the
debug.md
Gist: https://gist.github.com/mokkabonna/f03f1684426ca7fc7140a90b47168552Checklist
I have:
so I know this is not a duplicate issue
Atom Beautify: Help Debug Editor
command in Atom and added link fordebug.md
Gist to this issueThe text was updated successfully, but these errors were encountered: