Skip to content

Preserve zero padding with an empty thousands separator - #163

Closed
Narek-Khachikyan wants to merge 1 commit into
d3:mainfrom
Narek-Khachikyan:fix/empty-separator-zero-padding
Closed

Narek-Khachikyan wants to merge 1 commit into
d3:mainfrom
Narek-Khachikyan:fix/empty-separator-zero-padding

Conversation

@Narek-Khachikyan

Copy link
Copy Markdown

Summary

With thousands: "", formatting 1 with 05,d returns 0001 rather than 00001. An empty separator adds no width, so preserve the zero-padded string without applying group-width accounting.

Evidence

The regression fails against the unchanged base and passes with this fix. Full test suite and lint pass, along with the build.

Merge Danger

Door: Two-way. Blast Radius: Formatting.

@Narek-Khachikyan Narek-Khachikyan closed this by deleting the head repository Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant