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

Duplicate spaces and lost of linecomment #687

Closed
nojaf opened this issue Feb 17, 2020 · 1 comment
Closed

Duplicate spaces and lost of linecomment #687

nojaf opened this issue Feb 17, 2020 · 1 comment

Comments

@nojaf
Copy link
Contributor

nojaf commented Feb 17, 2020

Issue created from fantomas-ui

Not sure why there are more spaces between Decode.field "aggregate_id".
Also a lost of a code comment after | None -> None)

Code

Decode.map3 (fun aggregateId event commitPayload ->
    match commitPayload with
    | Some payload ->
        Some
            { AggregateId = AggregateId aggregateId
              Event = event
              Payload = payload }
    | None -> None) //
    (Decode.field "aggregate_id" Decode.string) //
    (Decode.field "event" Decode.string) decodePayload

Result

Decode.map3 (fun aggregateId event commitPayload ->
    match commitPayload with
    | Some payload ->
        Some
            { AggregateId = AggregateId aggregateId
              Event = event
              Payload = payload }
    | None -> None)  (Decode.field  "aggregate_id"  Decode.string)  //
    (Decode.field "event" Decode.string) decodePayload

Options

Fantomas Next - 3.2.0-2/10/2020

Name Value
IndentOnTryWith false
IndentSpaceNum 4
KeepNewlineAfter false
MaxIfThenElseShortWidth 40
PageWidth 100
ReorderOpenDeclaration false
SemicolonAtEndOfLine false
SpaceAfterComma true
SpaceAfterSemicolon true
SpaceAroundDelimiter true
SpaceBeforeArgument true
SpaceBeforeColon false
StrictMode false
@nojaf
Copy link
Contributor Author

nojaf commented Apr 24, 2020

Seems to be no longer an issue: online repro.

@nojaf nojaf closed this as completed Apr 24, 2020
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

No branches or pull requests

1 participant