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

Move leading commas to end of previous line #477

Closed
rjake opened this issue Mar 8, 2019 · 1 comment
Closed

Move leading commas to end of previous line #477

rjake opened this issue Mar 8, 2019 · 1 comment

Comments

@rjake
Copy link

rjake commented Mar 8, 2019

Similar to #402 I would like for arguments on a new row that begin with a comma to move up to the previous line

image

When I use this code:

x <-
    "mpg %>%
    summarise(avg_cty = mean(cty)
              , avg_hwy = mean(hwy)
              , n = n()
              , n_class = n_distinct(class))"

style_text(x)

I get this result:

image

@lorenzwalthert
Copy link
Collaborator

Thanks @rjake. Indeed, #402 was only solved partially. Now I hope with #479 we can cover it fully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants