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

Long signatures have additonal newline inserted and don't respect the indent from the config #1515

Closed
3 tasks
lmiskiewicz-js opened this issue Mar 10, 2021 · 0 comments · Fixed by #1516
Closed
3 tasks

Comments

@lmiskiewicz-js
Copy link

Issue created from fantomas-online

Code

namespace Bug

val create : something_really_long : unit -> another_really_long_thing : unit -> and_another_to_make_the_line_long_enough : unit -> unit

Result

namespace Bug

val create :

    something_really_long: unit ->
    another_really_long_thing: unit ->
    and_another_to_make_the_line_long_enough: unit ->
    unit

Problem description

When there is a long signature and it gets split into multiple lines there is an additional newline inserted after the name of the function and the indentation from the config is not respected for the following arguments of the function.

Sorry if there's any information missing. I'm happy to provide any additional information that might be helpful.

Extra information

  • The formatted result breaks my code.
  • The formatted result gives compiler warnings.
  • I or my company would be willing to help fix this.

Options

Fantomas Master at 03/08/2021 19:16:36 - a2fd887

    { config with
                IndentSize = 2 }

Signature file

Did you know that you can ignore files when formatting from fantomas-tool or the FAKE targets by using a .fantomasignore file?

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

Successfully merging a pull request may close this issue.

1 participant