Skip to content

fmt: keep manual newlines after fn parameters in fn declarations, do not auto wrap - #21795

Merged
spytheman merged 2 commits into
vlang:masterfrom
spytheman:vfmt_do_not_wrap_fn_declarations_keep_manual_newlines
Jul 3, 2024
Merged

spytheman merged 2 commits into
vlang:masterfrom
spytheman:vfmt_do_not_wrap_fn_declarations_keep_manual_newlines

Conversation

@spytheman

Copy link
Copy Markdown
Contributor
  • fmt: preserve manual line breaks in fn parameters, with no auto wrapping
  • small cleanup (remove unused wrapping parameter in stringify_fn_after_name)

@spytheman spytheman changed the title vfmt do not wrap fn declarations keep manual newlines fmt: keep manual newlines in fn declarations, do not auto wrap Jul 3, 2024
@spytheman spytheman changed the title fmt: keep manual newlines in fn declarations, do not auto wrap fmt: keep manual newlines after fn parameters in fn declarations, do not auto wrap Jul 3, 2024
@spytheman
spytheman merged commit 62e2b7f into vlang:master Jul 3, 2024
@spytheman
spytheman deleted the vfmt_do_not_wrap_fn_declarations_keep_manual_newlines branch July 4, 2024 04:54
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.

1 participant