-
Notifications
You must be signed in to change notification settings - Fork 46
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
Command tag to emulate a non-breaking space in a string #83
Comments
I like it! Not sure about the [] for the tag, though. There would be a difference in [nbsp] compared to all other tags, since this one would actually add something to the string instead of simply being a control character. I'm wondering if just the bare HTML entity sytnax (&tag;) would be a good idea or just more confusing for everyone. |
I mentioned on discord liking the idea of an empty Also if you add the command as |
@DragoniteSpam It's easy enough to add @glitchroy Dealing with |
Implemented for v6.0.7 |
Adding a non-breaking space to text is useful for handling UI elements where in-line sprites and phrases might want to be wrapped as a single unit. It's possible to achieve this already using the actual non-breaking space character (familiar to people everywhere as U+00A0) but editing a font to include an non-breaking space is annoying. Some fonts might not even support nbsp.
Scribble should support programmatically adding a non-breaking space to text. A programmatic nbsp would not be stored as U+00A0 in a string but instead utilise the command tag system to emulate a non-breaking space. This should be done with a command tag, either one of
[nbsp]
[ ]
[ ]
[nbsp;]
. This enables people to add non-breaking spaces with the least amount of effort.The text was updated successfully, but these errors were encountered: