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

end_of_line not respecting when file has ifdef #1673

Closed
nojaf opened this issue Apr 22, 2021 · 0 comments · Fixed by #1674
Closed

end_of_line not respecting when file has ifdef #1673

nojaf opened this issue Apr 22, 2021 · 0 comments · Fixed by #1674

Comments

@nojaf
Copy link
Contributor

nojaf commented Apr 22, 2021

Steps to reproduce

IfDef.fs

let a =
#if FOO
    43
#else
    30
#endif

.editorconfig

[*.fs]
end_of_line=lf

Test line endings in PowerShell:

(Get-Content IfDef.fs -Raw) -match "\r\n$"

Behaviour is correct when no ifdefs are present.

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

Successfully merging a pull request may close this issue.

1 participant