-
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
Zero-width version of $W #588
Comments
This is also needed for parameter lists. The first parameter never wraps. |
What are your thoughts on having In |
I think that might be too clever. Maybe just like |
Fine by me. Cool if I send a PR? |
Please do! |
I'm looking into the possibility of removing google-java-format from Dagger (google/dagger#368) and
$W
is a useful tool in adding line breaks when necessary, but sometimes I want the option of breaking if necessary, or no space at all.Consider this example: I want to write the following method invocations without thinking about how many arguments I'm about to pass:
$W
works for args1..N
but in the first example, adding in a$W
betweencreate(
andarg0
would create an awkward space.square/kotlinpoet#281 is a similar attempt that maybe can be applied here as well?
The text was updated successfully, but these errors were encountered: