Skip to content

Fix formatting of empty structs/maps/tuples/etc. when using trailing commas or indentation. - #26

Merged
spyoungtech merged 1 commit into
spyoungtech:mainfrom
bobroberts177:fix-empty-formatting
May 13, 2026
Merged

spyoungtech merged 1 commit into
spyoungtech:mainfrom
bobroberts177:fix-empty-formatting

Conversation

@bobroberts177

Copy link
Copy Markdown
Contributor

The code currently panics on empty structs/maps/tuples/etc. outputted with with FormatConfiguration that specifies non-zero indentation. It also adds commas to these empty datastructures which seems undesirable.

when using trailing commas or indentation.
@spyoungtech
spyoungtech merged commit 650be6a into spyoungtech:main May 13, 2026
1 check passed
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.

2 participants