Skip to content

Conversation

ivanharvard
Copy link

@ivanharvard ivanharvard commented Jul 14, 2025

Fixes a UI issue in which Expected vs Actual outputs would appear identical, yet check50 would fail because there was a certain invisible character within the text.

Related to #287 and #220.

+Added highlighting and escaping of newlines and spaces when they are the last character at the end of the output.
+Added a tooltip that describes the meaning of the highlighting.
+Added highlighting and escaping of arbitary invisible characters, mostly determined by Python's built-in .isprintable() function.

Color highlighting is gray by default, but can be easily modified by changing the color parameter when rendering the template.

image

@rongxin-liu rongxin-liu changed the base branch from main to 4.0.0-dev July 15, 2025 03:22
@rongxin-liu rongxin-liu added enhancement 4.x Issues relating to check50 4.x labels Jul 15, 2025
@rongxin-liu rongxin-liu added this to the 4.0.0 milestone Jul 15, 2025
Copy link
Contributor

@rongxin-liu rongxin-liu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good! Thanks! @ivanharvard

@rongxin-liu rongxin-liu merged commit cdbdfdb into 4.0.0-dev Jul 15, 2025
1 check passed
@rongxin-liu rongxin-liu deleted the patch-invis-char-html branch July 15, 2025 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4.x Issues relating to check50 4.x enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants