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

Handling of blank lines is idiosyncratic #311

Closed
SteveGilham opened this issue Sep 22, 2018 · 2 comments
Closed

Handling of blank lines is idiosyncratic #311

SteveGilham opened this issue Sep 22, 2018 · 2 comments

Comments

@SteveGilham
Copy link

Using fantomas . --recurse --indent 2 --pageWidth 90, it usually elides empty lines which are in the code to separate stanzas (e.g. the Act/Arrange/Assert parts of a test, where I am happy for line rearrangement within the stanza), but will sometimes insert them where they did not exist before, and where they have no good reason to exist, such as

Before

                            [ Path.getFullName
                                "_Binaries/AltCover.Tests/Debug+AnyCPU/__UnitTestWithAltCoverRunner/AltCover.Tests.dll"
                              Path.getFullName
                                "_Binaries/AltCover.Tests/Debug+AnyCPU/__UnitTestWithAltCoverRunner/Sample2.dll" ])

After

                            [ Path.getFullName
                                "_Binaries/AltCover.Tests/Debug+AnyCPU/__UnitTestWithAltCoverRunner/AltCover.Tests.dll"

                              Path.getFullName
                                "_Binaries/AltCover.Tests/Debug+AnyCPU/__UnitTestWithAltCoverRunner/Sample2.dll" ])
@Ciantic
Copy link

Ciantic commented Aug 11, 2019

I think this can be closed, I tried with 3.0 Preview tester

And it produced this:

[ Path.getFullName
    "_Binaries/AltCover.Tests/Debug+AnyCPU/__UnitTestWithAltCoverRunner/AltCover.Tests.dll"
  Path.getFullName
    "_Binaries/AltCover.Tests/Debug+AnyCPU/__UnitTestWithAltCoverRunner/Sample2.dll" ]

There is no additional new line there anymore in these versions.

@jindraivanek
Copy link
Contributor

Closing, thanks @Ciantic.

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

3 participants