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

fix function application being formatted toward invalid syntax #546

Conversation

smoothdeveloper
Copy link
Contributor

The indentation needs to be checked against the function expression start column in which case, prepend the "to be printed" expression with enough leading space.

fixes #545

Please let me know if the changes in implementation needs to be handled in a better way.

the indentation needs to be checked against the function expression start column in which case, prepend the "to be printed" expression with enough leading space
src/Fantomas/CodePrinter.fs Outdated Show resolved Hide resolved
@smoothdeveloper smoothdeveloper force-pushed the missing-indentation-on-function-application-after-multiline-expression branch from 8b10be7 to 096e8d0 Compare October 29, 2019 13:42
@jindraivanek jindraivanek merged commit 676e9b1 into fsprojects:master Oct 29, 2019
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

Successfully merging this pull request may close these issues.

invalid code generated after multiline string when other expressions exist on same line
2 participants