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

Router: implement newlines.inInterpolation logic #3080

Merged
merged 2 commits into from
Jan 25, 2022

Conversation

kitbellew
Copy link
Collaborator

Fixes #3079.

Copy link
Contributor

@tgodzik tgodzik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, though I am not sure about one example.

} foo4"
s"""
|foo1 ${bar} foo2 ${baz(bar)} foo3 ${qux(baz,
bar)} foo4
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't there be an additional break here? foo4 seems to reach maxColumn (51) if I calculated correctly.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah... let me check

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you were right. added another option, oneline, which is least likely to overflow, and mentioned in the docs the caveat about the others. please take another look.

Copy link
Contributor

@tgodzik tgodzik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@kitbellew kitbellew merged commit 4343aa0 into scalameta:master Jan 25, 2022
@kitbellew kitbellew deleted the 3079 branch January 25, 2022 16:53
@satorg
Copy link

satorg commented Jan 25, 2022

@kitbellew thank you for looking into it!

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.

Starting with v3.3.1 scalafmt formats boilerplate code in a weird way
3 participants