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

Add force-aligned feature #1015

Merged
merged 1 commit into from
Sep 6, 2016
Merged

Add force-aligned feature #1015

merged 1 commit into from
Sep 6, 2016

Conversation

Lukinoh
Copy link
Contributor

@Lukinoh Lukinoh commented Sep 2, 2016

'force aligned' attribute will align automatically all attributes based on the position of the first attribute.

As I said (#936 (comment)), I have some issues to how correctly test this feature.

Edit: I will fix the issue about startsWith ASAP.

options: [
{ name: "wrap_attributes", value: "'force-aligned'" }
],
indent_attr: '\\n ', /* Number of spaces should be dynamic */
Copy link
Member

@bitwiseman bitwiseman Sep 2, 2016

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.

@Lukinoh
Copy link
Contributor Author

Lukinoh commented Sep 5, 2016

I am not sure why it fails. Is the problem on my end ?

@bitwiseman
Copy link
Member

Remember to run ./buildand commit the fixed code.

@Lukinoh
Copy link
Contributor Author

Lukinoh commented Sep 6, 2016

My bad, thank you.

@bitwiseman
Copy link
Member

bitwiseman commented Sep 6, 2016

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.
@Lukinoh
Copy link
Contributor Author

Lukinoh commented Sep 6, 2016

Hopefully, I fulfill correctly your request about squashing and rebasing.

Yes #916. If it is possible, add a reference to the ticket #455 also. When I search on my beloved search engine, I was redirected to this issue first.

@bitwiseman
Copy link
Member

squash and rebase: yes, you did that correctly.
"add a reference to the ticket": you just did. 😄

Thanks for your contribution!

@bitwiseman bitwiseman merged commit 56be690 into beautifier:master Sep 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants