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

Fantomas keeps adding newlines every time you format #709

Closed
tmonte opened this issue Feb 28, 2020 · 0 comments · Fixed by #714
Closed

Fantomas keeps adding newlines every time you format #709

tmonte opened this issue Feb 28, 2020 · 0 comments · Fixed by #714

Comments

@tmonte
Copy link

tmonte commented Feb 28, 2020

Issue created from fantomas-ui

Fantomas (vNext - 3.3.0-2/28/2020) keeps adding newline every time you format. Pasting the formatted code back again into the editor and formatting again will add yet more spaces.

Code

open Xunit
open FSharp.Core
open Swensen.Unquote

type FormattingSpecs() =

    [<Fact>]
    let ``true is true``() = test <@ true = true @>

    [<Fact>]
    let ``false is false``() = test <@ false = false @>

Result (notice extra lines between functions)

open Xunit
open FSharp.Core
open Swensen.Unquote

type FormattingSpecs() =


    [<Fact>]
    let ``true is true``() = test <@ true = true @>


    [<Fact>]
    let ``false is false``() = test <@ false = false @>

Options

Fantomas Next - 3.3.0-2/28/2020

Name Value
IndentOnTryWith false
IndentSpaceNum 4
KeepNewlineAfter false
MaxIfThenElseShortWidth 40
PageWidth 120
ReorderOpenDeclaration false
SemicolonAtEndOfLine false
SpaceAfterComma true
SpaceAfterSemicolon true
SpaceAroundDelimiter true
SpaceBeforeArgument true
SpaceBeforeColon false
SpaceBeforeSemicolon false
StrictMode false
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