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

Format: reduce redundant newlines at end of begin ... end #9741

Merged

Conversation

makenowjust
Copy link
Contributor

Follow up #9722

The following example still invokes a formatter issue like #9657.

begin
  1
  # Comment

end

This PR fixes such issues.

@makenowjust makenowjust changed the title Reduce redundant newlines at end of begin ... end Format: reduce redundant newlines at end of begin ... end Sep 11, 2020
makenowjust and others added 2 commits October 17, 2020 02:59
Follow up crystal-lang#9722

The following example still invokes a formatter issue like crystal-lang#9657.

```
begin
  1
  # Comment

end
```

This commit fixes such issues.
Co-authored-by: Sijawusz Pur Rahnama <sija@sija.pl>
@makenowjust
Copy link
Contributor Author

Resolved conflict.

@straight-shoota straight-shoota added kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:tools:formatter labels Nov 21, 2020
@straight-shoota straight-shoota added this to the 1.0.0 milestone Nov 21, 2020
@straight-shoota straight-shoota merged commit e9ac49e into crystal-lang:master Nov 24, 2020
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.

5 participants