-
-
Notifications
You must be signed in to change notification settings - Fork 72
In stepper, respect the number-display format of the language. #246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
To that end, call the underlying pretty-print-print-handler instead of format, and transform write-special'ed number markup into the corresponding snip.
I should not that the snips don't look very good, but this needs to be fixed in the framework. |
Is there a place to add a test case for this one?
Robby
…On Tue, Apr 29, 2025 at 6:35 AM Mike Sperber ***@***.***> wrote:
*mikesperber* left a comment (racket/htdp#246)
<#246 (comment)>
I should not that the snips don't look very good, but this needs to be
fixed in the framework.
—
Reply to this email directly, view it on GitHub
<#246 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADBNMGS62M26AGQLEY4UFL235PZXAVCNFSM6AAAAAB4CUJYP6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQMZYGMZDIMJXGY>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
A meaningful test for this would have to look at the actual live UI of the stepper - I haven't seen that yet. (Or am I wrong, @jbclements ?) |
@mike no, there's no way to look at the live GUI output that I know of, though I can add a manual checklist item to manual-tests. You probably have an easy example that I can test? Broadly speaking: this definitely seems like an improvement. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It certainly seems like the existing code ignored the existing pretty-print-size-hook, and I can't see why that would be a good thing. The direct use of format
with ~s
definitely seems less likely to be correct.
@rfindler Any chance you could help with making the number snips use the same font size as the |
To that end, call the underlying pretty-print-print-handler instead of format, and transform write-special'ed number markup into the corresponding snip.