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

BUG: bad formatting, trailing whitespace #2538

Closed
nojb opened this issue Apr 13, 2024 · 2 comments
Closed

BUG: bad formatting, trailing whitespace #2538

nojb opened this issue Apr 13, 2024 · 2 comments

Comments

@nojb
Copy link
Contributor

nojb commented Apr 13, 2024

let _ =
  match c with
  | {issuer = _; (* TODO *)
     _
    } -> ()

yields

let _ =
  match c with
  | {
   issuer = _;

   (* TODO *)
 _;
  } ->
      ()

where there is trailing whitespace in the empty line before the (* TODO *). The behaviour can be reproduced with an empty .ocamlformat. Tested on the branch of #2537.

@Julow
Copy link
Collaborator

Julow commented Apr 15, 2024

Thanks for reporting, should be fixed by #2540

@Julow
Copy link
Collaborator

Julow commented Apr 16, 2024

The fix is merged.

@Julow Julow closed this as completed Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants