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

double-asterisk in block comment opening delimiter forced onto separate lines #390

Open
montchr opened this issue May 8, 2023 · 0 comments · May be fixed by #401
Open

double-asterisk in block comment opening delimiter forced onto separate lines #390

montchr opened this issue May 8, 2023 · 0 comments · May be fixed by #401

Comments

@montchr
Copy link

montchr commented May 8, 2023

https://kamadorueda.com/alejandra/?before=%7B%0A++%2F**%0A++Convert+a+boolean+to+a+%22yes%22+or+%22no%22+string.%0A%0A++Commonly+useful+in+program+configuration+files.%0A%0A++Type%3A+boolToOnOffString+%3A%3A+boolean+-%3E+string%0A++*%2F%0A++boolToOnOffString+%3D+value%3A%0A++++if+value%0A++++then+%22on%22%0A++++else+%22off%22%3B%0A%7D

Expected

{
  /**
  Convert a boolean to a "yes" or "no" string.

  Commonly useful in program configuration files.

  Type: boolToOnOffString :: boolean -> string
  */
  boolToOnOffString = value:
    if value
    then "on"
    else "off";
}

Actual

{
  /*
    *
  Convert a boolean to a "yes" or "no" string.

  Commonly useful in program configuration files.

  Type: boolToOnOffString :: boolean -> string
  */
  boolToOnOffString = value:
    if value
    then "on"
    else "off";
}

I am aware of RFC 0145, but I intentionally retained the first-level indentation of the comment body since this issue is about /** specifically

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