-
Notifications
You must be signed in to change notification settings - Fork 453
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
invalid indentation for html code #1436
Comments
Thanks for all of the info! I see the beautifier being used is |
its new issue please help, whats wrong going on with it. |
The only problem that I see in the output is that the inner closing div tag |
in the .jsbeautifyrc file configuration. |
Your options look pretty basic, so I don't believe they are responsible for any kind of problem. |
I'm having the same issue: Source code input (in a new file set to HTML) <div>
<div class="some-very-big-class"
other-attribute="some -- other complex === attribute">
<div>
<custom-tag />
</div>
</div>
</div> Output after beautify: <div>
<div class="some-very-big-class"
other-attribute="some -- other complex === attribute">
<div>
<custom-tag />
</div>
</div> <!-- missing indentation -->
</div> Very strange, and only started happening after I updated to the latest version. Here's my debug info: https://gist.github.com/starstuffharvestingstarlight/00d298f1d0ac847a3a4f663a0a9255b5 Note that I use force wrap at 100 chars. If I don't force wrap, beautify works as expected: <div>
<div class="some-very-big-class" other-attribute="some -- other complex === attribute">
<div>
<custom-tag />
</div>
</div>
</div> |
this issue on jsbeautify seems to be related: beautifier/js-beautify#1103 |
temporarily after changing default beautifier Pretty Diff then it working fine. |
Looks like js-beautify should be fixed: beautifier/js-beautify#1103 Closing this now. |
Description
when i indent code then wrong indentation done in html. In this end tag keep in same line
The results of beautification are not what I expect.
proper indetation like with end tag
Input Before Beautification
This is what the code looked like before:
Expected Output
The beautified code should have looked like this:
Actual Output
The beautified code actually looked like this:
Steps to Reproduce
Atom Beautify: Beautify Editor
Debug
Here is a link to the
debug.md
Gist: https://gist.github.com/ChandraKantPaliwal/7de186605549618072eb7c08478f48c5Checklist
I have:
so I know this is not a duplicate issue
debug.md
Gist to this issueThe text was updated successfully, but these errors were encountered: