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

Multiline list with commas or operators has wrong indentation level #33

Open
hzulla opened this issue Jan 27, 2016 · 2 comments
Open

Multiline list with commas or operators has wrong indentation level #33

hzulla opened this issue Jan 27, 2016 · 2 comments
Labels

Comments

@hzulla
Copy link

hzulla commented Jan 27, 2016

I think this is somewhat related to #24 :

The gem does this:

puts "Hi there " +
"Whatever " +
"yay!"

puts "Hi there ",
"Whatever ",
"yay!"

Expected result:

puts "Hi there " +
  "Whatever " +
  "yay!"

puts "Hi there ",
  "Whatever ",
  "yay!"
@hzulla
Copy link
Author

hzulla commented Jan 27, 2016

(ruby beautify is used in Sonic Pi. See sonic-pi-net/sonic-pi#943 for discussion.)

@ioquatix
Copy link

I believe this also affects multi-line

x = if (foo &&
  bar) then
    1
  else
    2
  end

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

No branches or pull requests

3 participants