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

Record option with attribute gets an additional space with PreserveEndOfLine #442

Closed
ForNeVeR opened this issue May 25, 2019 · 2 comments
Closed

Comments

@ForNeVeR
Copy link
Contributor

Description

When formatting this code:

type Options = {
    [<DefaultValue>] a: string
    b: bool
}

with PreserveEndOfLine enabled, it gets an additional space:

type Options = {
     [<DefaultValue>] a: string
    b: bool
}

When formatting the resulting code again with the same option, it will get another space. Each reformat will increase indentation of the first line by one

Repro code

Repro link

@auduchinok
Copy link
Contributor

This happens for other cases with attributes as well. I've seen it for parameters patterns too.
I hope #434 will fix them all. :)

@nojaf
Copy link
Contributor

nojaf commented Jul 12, 2019

This behaviour can't occur anymore after #434.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants