Skip to content

Fix formatting of s pattern#3469

Merged
ppkarwasz merged 6 commits into2.xfrom
fix/2.x/single_s_pattern
Feb 19, 2025
Merged

Fix formatting of s pattern#3469
ppkarwasz merged 6 commits into2.xfrom
fix/2.x/single_s_pattern

Conversation

@ppkarwasz
Copy link
Copy Markdown
Contributor

The specialized SecondPatternSequence formatter is optimized to format the ss.?S* patterns, where seconds are padded. For the not padded (and uncommon) s pattern, we should use the usual DynamicPatternSequence.

This is the main reason for the failing #3468 test.

The specialized `SecondPatternSequence` formatter is optimized to format the `ss.?S*` patterns, where seconds are padded. For the not padded (and uncommon) `s` pattern, we should use the usual `DynamicPatternSequence`.
@ppkarwasz ppkarwasz requested a review from vy February 16, 2025 09:27
@ppkarwasz ppkarwasz added this to the 2.25.0 milestone Feb 16, 2025
@ppkarwasz ppkarwasz requested a review from vy February 18, 2025 21:37
ppkarwasz and others added 2 commits February 19, 2025 14:17
Co-authored-by: Volkan Yazıcı <volkan@yazi.ci>
@ppkarwasz ppkarwasz merged commit 0891d6b into 2.x Feb 19, 2025
@ppkarwasz ppkarwasz deleted the fix/2.x/single_s_pattern branch February 19, 2025 15:35
jvz pushed a commit that referenced this pull request Jul 31, 2025
Fixes the formatting of the single `s` pattern.

Co-authored-by: Volkan Yazıcı <volkan@yazi.ci>
jvz added a commit that referenced this pull request Aug 1, 2025
Fixes the formatting of the single `s` pattern.

Co-authored-by: Piotr P. Karwasz <piotr.github@karwasz.org>
Co-authored-by: Volkan Yazıcı <volkan@yazi.ci>
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