fantomas icon indicating copy to clipboard operation
fantomas copied to clipboard

Space should not be added before parentheses following `?` operator

Open MangelMaxime opened this issue 9 months ago • 2 comments

Issue created from fantomas-online

Code

x?a("")?b(t)

Result

x?a ("")?b (t)

Problem description

Please describe here the Fantomas problem you encountered. Check out our Contribution Guidelines.

Extra information

  • [x] The formatted result breaks my code.
  • [ ] The formatted result gives compiler warnings.
  • [ ] I or my company would be willing to help fix this.
  • [ ] I would like a release if this problem is solved.

Options

Fantomas main branch at 2025-03-14T18:18:01Z - 2d16ee5f6dc2263a89b93c779f424a91eeb3c34f

Default Fantomas configuration

Did you know that you can ignore files when formatting by using a .fantomasignore file? PS: It's unlikely that someone else will solve your specific issue, as it's something that you have a personal stake in.

MangelMaxime avatar Mar 20 '25 14:03 MangelMaxime

Thank you for reporting this! Are you interested in sending a PR for this?

nojaf avatar Mar 20 '25 14:03 nojaf

I don't think I will have the time to investigate this issue unfortunately, I already have my hand full...

MangelMaxime avatar Mar 20 '25 15:03 MangelMaxime