fsprojects / fantomas

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

Attributes followed by unit literals aren't formatted properly #405

Closed ForNeVeR closed 5 years ago

ForNeVeR commented 5 years ago

Description

I have this code:

[<assembly: AssemblyVersion("0.0.1.0")>]
[<assembly: InternalsVisibleTo("Nightwatch.Tests")>]
()

After formatting, it looks like this:

()[<assembly: AssemblyVersion("0.0.1.0")>]
[<assembly: InternalsVisibleTo("Nightwatch.Tests")>]

Fantomas shouldn't change the order of literals and attributes in this case.

Repro code

Here's the repro link, note PreserveEndOfLine.

nojaf commented 5 years ago

Hello @ForNeVeR , in #390 we have decided to sunset --preserve-eol in the next major. There is no issue if PreserveEndOfLine is false so it is unlikely this will be fixed by us. I'm leaving it open in case anyone from the community wants to pick it up.

nojaf commented 5 years ago

Not a problem anymore due to #434.