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

Grainformat: remove extraneous newline for function comments in submodules #1644

Closed
alex-snezhko opened this issue Jan 31, 2023 · 0 comments · Fixed by #1976
Closed

Grainformat: remove extraneous newline for function comments in submodules #1644

alex-snezhko opened this issue Jan 31, 2023 · 0 comments · Fixed by #1976
Assignees
Labels
grainfmt Issues related to the Grain formatter

Comments

@alex-snezhko
Copy link
Member

Formatting the following code

module Test

module Inner {
  /**
   * Do stuff
   */
  provide let fn = () => 1
}

Produces an extra newline after the function comment when it probably shouldn't

module Test

module Inner {
  /**
   * Do stuff
   */

  provide let fn = () => 1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
grainfmt Issues related to the Grain formatter
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

5 participants