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

Comprehension (mis)indentation #256

Closed
beedub opened this issue Sep 12, 2015 · 3 comments · Fixed by #260
Closed

Comprehension (mis)indentation #256

beedub opened this issue Sep 12, 2015 · 3 comments · Fixed by #260

Comments

@beedub
Copy link

beedub commented Sep 12, 2015

Returning on a one-line comprehension shouldn't indent the next line, right?

blah = for i <- list, do: i
  # this line should not be indented
@gausby
Copy link
Contributor

gausby commented Sep 12, 2015

Hi, this doesn't seem to be a problem in master. I think that you might be running an older version.

blah = for i <- list, do: i
# this line should not be indented

@beedub
Copy link
Author

beedub commented Sep 12, 2015

Ah, looks like I removed necessary dependent code from the test case. Adding defmodule before it makes the indentation weird. (I'm also on master)

defmodule Hello do
end

hi = for i <- list, do: i
  # weird spacing now

@tonini
Copy link
Contributor

tonini commented Sep 13, 2015

Thanks! I'll have a look at this too. 😄

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

Successfully merging a pull request may close this issue.

3 participants