-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Add force-aligned feature #1015
Conversation
options: [ | ||
{ name: "wrap_attributes", value: "'force-aligned'" } | ||
], | ||
indent_attr: '\\n ', /* Number of spaces should be dynamic */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add more matrix vars to deal with the dynamic. It looks like you only need one more - for the <link>
and '<root>
elements that will have one more space in in this case.
I am not sure why it fails. Is the problem on my end ? |
Remember to run |
My bad, thank you. |
So this closes #916, right? This looks great. I've added that bug to this milestone. Could you squash all these to one commit and rebase it on the beautify-web/js-beautify master branch? Then I should be able to merge. |
'force aligned' attribute will align automatically all attributes based on the position of the first attribute.
squash and rebase: yes, you did that correctly. Thanks for your contribution! |
As I said (#936 (comment)), I have some issues to how correctly test this feature.
Edit: I will fix the issue about startsWith ASAP.