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

Extra semicolons in list with PreserveEndOfLine (Bug report from fantomas-ui) #371

Closed
vilinski opened this issue Nov 27, 2018 · 0 comments · Fixed by #374
Closed

Extra semicolons in list with PreserveEndOfLine (Bug report from fantomas-ui) #371

vilinski opened this issue Nov 27, 2018 · 0 comments · Fixed by #374

Comments

@vilinski
Copy link

Issue created from fantomas-ui

glad the invalid indentation by this constellation is fixed in the last version. But this bug is still here:
fantoms produces valid code, but adds semicolons at the end of each list item, while SemicolonAtEndOfLine is off

Code

let lst = 
    [ 5
      6
      7
    ]

Result

let lst =
    [ 5;
      6;
      7
    ]

Options

Fantomas 2.9.1

Name Value
IndentSpaceNum 4
PageWidth 80
PreserveEndOfLine true
SemicolonAtEndOfLine false
SpaceBeforeArgument true
SpaceBeforeColon true
SpaceAfterComma true
SpaceAfterSemicolon true
IndentOnTryWith false
ReorderOpenDeclaration false
SpaceAroundDelimiter true
StrictMode false
@jindraivanek jindraivanek changed the title Bug report from fantomas-ui Extra semicolons in list with PreserveEndOfLine (Bug report from fantomas-ui) Nov 28, 2018
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 a pull request may close this issue.

1 participant