-
Notifications
You must be signed in to change notification settings - Fork 439
Fix CodeGenerationFormat.formatChildrenSeparatedByNewline()
to not add an extra newline to the end of lists that already have one
#2823
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
Conversation
…add an extra newline to the end of a list that already has one
CodeGenerationFormat.formatChildrenSeparatedByNewline()
to not add an extra newline to the end of lists that already have one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you ❤️ Nice clean up
…Newline` Co-authored-by: Alex Hoppen <alex@alexhoppen.de>
Do I squash commits, or is this ok? |
The view mode change didn't affect generated code, but it made the line longer so that it should wrap. I'll run format and commit once more. EDIT: Done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
@swift-ci Please test |
@swift-ci Please test |
@swift-ci Please test Windows |
1 similar comment
@swift-ci Please test Windows |
This fixes a bug where
CodeGenerationFormat.formatChildrenSeparatedByNewline()
adds an extra newline to the end of lists that already have one.