-
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
Using tabs when wrapping attributes and wrapping if needed #1294
Comments
@ManuelDeLeon - We're open to PRs, but please file these two different enhancement proposals as two differ issues (keep one here and open a new issue for the other). Also, before implementing, take a minute to describe the behaviors more fully. Why would wrapping with tabs be better than spaces (if spaces are used for the rest of the file)? |
The rest of the file uses tabs but right now wrapping parameters use spaces
instead of tabs.
I'll create another issue for the second point.
…On Nov 27, 2017 2:43 PM, "Liam Newman" ***@***.***> wrote:
@ManuelDeLeon <https://github.com/manueldeleon> - We're open to PRs, but
please file these two different enhancement proposals as two differ issues
(keep one here and open a new issue for the other).
Also, before implementing, take a minute to describe the behaviors more
fully. Why would wrapping with tabs be better than spaces (if spaces are
used for the rest of the file)?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1294 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AED31j6P--s95RAOzwZKCbwc3IG5sHv-ks5s6yz0gaJpZM4Qmiiv>
.
|
@ManuelDeLeon Spaces instead of tabs: Oh! If the rest fo the file already uses tabs then it would totally make sense for the wrapped attributes to use tabs as well - no additional option needed. I would say it is a bug that the wrap indent doesn't do this already. Note, using tabs for indent would probably need to disable some of the other wrap settings like |
I thought it was intentional given this test:
Do you have a guide for running the tests? |
@ManuelDeLeon To run the tests see: |
This is related to #1551. |
@ManuelDeLeon |
I was wondering if you're open to receiving two PRs to add two options for HTML.
An option to use tabs when wrapping parameters + indent_with_tabs:true. Right now it adds spaces, creating a mixed mode file. Something like
wrap_attributes_with_tabs:bool
.An option to wrap parameters if they reach the wrap_line_length. Something similar to force-expand-multi-line but not forced. I don't have a good name for this option because I don't understand quite well what
auto
means forwrap_attributes
.We'd end up with a file formatted this way:
This is to match a common JS/TS style used when wrapping parameters:
Thanks
The text was updated successfully, but these errors were encountered: