fsprojects / fantomas

FSharp source code formatter
https://fsprojects.github.io/fantomas
Other
770 stars 191 forks source link

Space inserted before final > in type parameter #2860

Open cmeeren opened 1 year ago

cmeeren commented 1 year ago

Issue created from fantomas-online

Code

{| payload with reason = reason |}
|> Json.serialize<{|
    reason: string
    old: bool
    ``new``: bool
|}>

Result

{| payload with reason = reason |}
|> Json.serialize<{|
    reason: string
    old: bool
    ``new``: bool
|} >

Problem description

See the final line: |} >

There should not be a space before >. (There is no space when using Cramped, and it should be consistent with the opening <{|.)

Extra information

Options

Fantomas main branch at 1/1/1990

    { config with
                MultilineBracketStyle = stroustrup }

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