Skip to content

Conversation

@Kev1n8
Copy link
Contributor

@Kev1n8 Kev1n8 commented Jul 1, 2024

should fix #6519 and #2774.
added some padding tests and fix the incorrect behaviors of padding

@Kev1n8 Kev1n8 force-pushed the fix-extra-padding branch from fb45ff7 to c1f10f0 Compare July 2, 2024 04:12
@Kev1n8 Kev1n8 marked this pull request as ready for review July 2, 2024 04:14
@Kev1n8 Kev1n8 force-pushed the fix-extra-padding branch from c1f10f0 to a1cbf06 Compare July 3, 2024 02:09
@Kev1n8 Kev1n8 requested a review from sylvestre July 5, 2024 07:42
@Kev1n8 Kev1n8 force-pushed the fix-extra-padding branch from b46e323 to db3f6ec Compare July 5, 2024 10:33
@Kev1n8 Kev1n8 force-pushed the fix-extra-padding branch from db3f6ec to 03e1019 Compare July 5, 2024 10:36
@Kev1n8 Kev1n8 requested a review from sylvestre July 5, 2024 14:09
@Kev1n8
Copy link
Contributor Author

Kev1n8 commented Jul 6, 2024

Just added a case check, should fix the remaining issue in #2774. Before this, there was a incorrect output as following:
Screenshot 2024-07-06 at 15 22 30

@Kev1n8 Kev1n8 force-pushed the fix-extra-padding branch from ecea83a to 61b85a0 Compare July 6, 2024 07:24
@sylvestre
Copy link
Contributor

Just added a case check, should fix the remaining issue in #2774. Before this, there was a incorrect output as following: Screenshot 2024-07-06 at 15 22 30

could you please replace the screenshot by text? it is terrible for accessibility and search. thanks

@Kev1n8
Copy link
Contributor Author

Kev1n8 commented Jul 6, 2024

could you please replace the screenshot by text? it is terrible for accessibility and search. thanks

Sorry for my carelessness. The incorrect output text is as following:
/coreutils printf "%+5.1f" 2
+ 2.0%

@Kev1n8 Kev1n8 force-pushed the fix-extra-padding branch from 6272ade to 6fd8ba8 Compare July 6, 2024 08:06
@Kev1n8 Kev1n8 force-pushed the fix-extra-padding branch from 6fd8ba8 to 8e0bbe0 Compare July 6, 2024 08:28
@Kev1n8 Kev1n8 requested a review from sylvestre July 7, 2024 09:11
@Kev1n8 Kev1n8 closed this Jul 7, 2024
@Kev1n8 Kev1n8 deleted the fix-extra-padding branch July 7, 2024 11:34
@Kev1n8 Kev1n8 restored the fix-extra-padding branch July 7, 2024 11:38
@Kev1n8
Copy link
Contributor Author

Kev1n8 commented Jul 7, 2024

sorry, that was an accident.

@Kev1n8 Kev1n8 mentioned this pull request Jul 7, 2024
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.

printf: extra spaces if padding number is not next to %

2 participants