Skip to content

Chained blocks on calls should indent correctly #60

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

Closed
kddnewton opened this issue Apr 22, 2022 · 1 comment
Closed

Chained blocks on calls should indent correctly #60

kddnewton opened this issue Apr 22, 2022 · 1 comment

Comments

@kddnewton
Copy link
Member

def foo
  some_interesting_method
    .another_method
    .yet_another_interesting_one do |first_object, second|
      first_object.do_something(second)
    end
end

for more details see prettier/plugin-ruby#1130

@kddnewton
Copy link
Member Author

Calling this a limitation of the existing printing algorithm.

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

No branches or pull requests

1 participant