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

No new line after long name when copying record with "with" #155

Closed
robert-impey opened this issue Sep 1, 2014 · 1 comment
Closed

No new line after long name when copying record with "with" #155

robert-impey opened this issue Sep 1, 2014 · 1 comment

Comments

@robert-impey
Copy link

Something like

let secondRollOutcome = 
    ({ RollOutcome.Init(secondPins, None, firstFrameScoreForFirstRoll) 
        with SecondFrameScore =          secondFrameScoreForSecondRoll
             ThirdFrameScore =           Some(thirdFrameScoreForSecondRoll)
             ThirdFrameCumulativeScore = Some(thirdFrameCumulativeScoreForSecondRoll) })

goes to

let secondRollOutcome = 
    ({ RollOutcome.Init(secondPins, None, firstFrameScoreForFirstRoll) with SecondFrameScore = 
                                                                                secondFrameScoreForSecondRoll
                                                                            ThirdFrameScore = 
                                                                                Some(thirdFrameScoreForSecondRoll)
                                                                            ThirdFrameCumulativeScore = 
                                                                                Some
                                                                                    (thirdFrameCumulativeScoreForSecondRoll) })

There should be a new line after the long name for the record that is being copied and the with should be put on a new line.

@nojaf
Copy link
Contributor

nojaf commented Jul 17, 2019

Formatting with latest code returns

let secondRollOutcome =
    ({ RollOutcome.Init(secondPins, None, firstFrameScoreForFirstRoll) with
           SecondFrameScore = secondFrameScoreForSecondRoll
           ThirdFrameScore = Some(thirdFrameScoreForSecondRoll)
           ThirdFrameCumulativeScore =
               Some(thirdFrameCumulativeScoreForSecondRoll) })

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

3 participants