Skip to content

Conversation

@jpagh
Copy link
Contributor

@jpagh jpagh commented Dec 20, 2025

This change makes it so that if objects are passed in as the text argument, they are stringified and stripped before checking their "emptiness" (I chose to check truthiness, but equality to an empty string would work, too).

This fixes a scenario I experienced where I passed an object in to italic() that wasn't None but also wasn't equal to '' but where the stringified output of the object was an empty string '', which caused the italic() function to output __.

@jhpyle jhpyle merged commit 32cfeea into jhpyle:master Jan 1, 2026
3 checks passed
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