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

Incorrect indentation when space around delimiter is false #362

Closed
nojaf opened this issue Nov 21, 2018 · 2 comments
Closed

Incorrect indentation when space around delimiter is false #362

nojaf opened this issue Nov 21, 2018 · 2 comments

Comments

@nojaf
Copy link
Contributor

nojaf commented Nov 21, 2018

Description

Before:

let config =
    [ ("number", "12368")
      ("date", "616165")
      ("code: ", "1616155")
      ("order reference", "561616") ]

The space between [ and ( is removed after formatting but the other lines are formatted one space too far. This happens only when preserveEndOfLine is true.

After:

let config =
    [("number", "12368")
      ("date", "616165")
      ("code: ", "1616155")
      ("order reference", "561616")]

Repro code

Online tool

nojaf added a commit to nojaf/fantomas that referenced this issue Nov 25, 2018
@nojaf nojaf closed this as completed in a4c9470 Nov 26, 2018
@nojaf
Copy link
Contributor Author

nojaf commented Nov 30, 2018

This still happens with other types in arrays as well.

F.ex

let lst =
    [ 5
      6
      7 ]

Will be

let lst =
    [5
      6
      7]

SpaceAroundDelimiter = false.

@nojaf
Copy link
Contributor Author

nojaf commented Jul 10, 2019

Cannot happen anymore since trivia.

@nojaf nojaf closed this as completed Jul 10, 2019
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

2 participants