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

extra newline characters are unexpected #1119

Closed
3 tasks
jmagaram opened this issue Sep 9, 2020 · 1 comment
Closed
3 tasks

extra newline characters are unexpected #1119

jmagaram opened this issue Sep 9, 2020 · 1 comment

Comments

@jmagaram
Copy link

jmagaram commented Sep 9, 2020

Issue created from fantomas-online

Code

[<Fact>]
let ``when delete an UNCHANGED row, return Some unchanged value`` () =
    let actual =
        bob |> DataRow.unchanged |> DataRow.delete
    let expected = bob |> DataRow.deleted |> Some
    actual |> should equal expected

Result

[<Fact>]
let ``when delete an UNCHANGED row, return Some unchanged value`` () =
    let actual =
        bob |> DataRow.unchanged |> DataRow.delete

    let expected = bob |> DataRow.deleted |> Some
    actual |> should equal expected

Problem description

in a bunch of cases Fantomas inserts extra newlines and I don't want them (or maybe you can explain why they are there). I don't see a configuration option to remove them.

Extra information

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

Options

Fantomas Master at 09/08/2020 18:11:08 - 75677b9

    { config with
                StrictMode = true }
@nojaf
Copy link
Contributor

nojaf commented Sep 9, 2020

Hey @jmagaram , Fantomas will add blank lines around multi-line code constructs.
As this is expected behavior I'm going to close this bug report, feel free to create a feature suggestion to further discuss this.
Lastly, please don't use strict mode in your settings.

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

No branches or pull requests

2 participants