-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
html.format.wrapAttributes: "force" and "force-align" breaks indentation #19727
Comments
I also didn't notice a difference between |
Hi guys, I don't know why, but it's another application using jsbeautifier which haven't read the documentation carefully. The correct option for wrapAttributes is force-aligned, not force-align. <div attr-1
attr-2
attr-3>
<p>Test</p>
</div> That's another story and is already reported here beautifier/js-beautify#1103 |
Good catch with the wrong settings schema: I created #19849, planed for the next rebuild. |
Closing this issue. Waiting for beautifier/js-beautify#1103 to be fixed. |
Would it be possible to extend the options of wrapping with "auto-align" ?? "force-align" will force wrapping + aligning them... but let say i don't want to wrap EVERY SINGLE HTML ELEMENT, but only the long ones - and then do them manually .. so, "auto-align" would only align those that are already wrapped. |
@Montago Please file suggestions to https://github.com/beautify-web/js-beautify which is the formatter we use. |
Steps to Reproduce:
force
orforce-align
editor.action.formatDocument
Sample html:
Expected result:
Actual result:
The text was updated successfully, but these errors were encountered: