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

Fix formatter to format multiline literal elements #7048

Merged

Conversation

makenowjust
Copy link
Contributor

Fixed #7046

Now crystal tool format keeps following format:

[
  {
    "some" => "hash",
    "with" => "values",
  }, {
    "another"  => "hash",
    "will get" => "deindented",
  }, {
    "now" => "totally",
  }, {
    "flat" => "against the left",
  },
]

@dscottboggs Thank you for great reporting!

@makenowjust
Copy link
Contributor Author

It seems the CI is failed at unrelated point:

Especially test_darwin is failed in installing dependencies...

@dscottboggs
Copy link
Contributor

Wow, thanks for such a quick fix, @makenowjust 😃

@bcardiff bcardiff added kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:tools:formatter labels Nov 9, 2018
@RX14 RX14 added this to the 0.27.1 milestone Nov 11, 2018
@RX14 RX14 merged commit 52b2e6b into crystal-lang:master Nov 11, 2018
@makenowjust makenowjust deleted the fix/7046-format-multiline-elements branch November 11, 2018 23:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:tools:formatter
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants