Skip to content

Improve fmt for comma-separated lists #86

@adlerjohn

Description

@adlerjohn

For single-line comma-separated lists (e.g. the fields of a struct) forc fmt currently:

  1. Only supports formatting to a single line, and
  2. Adds a whitespace at the end of the last element in the list, after the comma.

It should support certain comma-separated lists always being one element per line (e.g. struct fields will always be one per line, no one writes them in a single line), which should also fix the abovementioned bug.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions