Pesky spaces in chat? I can fix that! [More]
To download this library for your Linux/Mac installation, enter this on your command line:
DreamDownload byond://Lugia319.ClearSpaces##version=2Emulator users, in the BYOND pager go to File | Open Location and enter this URL:
Update: Ter13 showed me that you can still input the tab character by copying it from charmap. I've added a fix so you can't spam tab to win.
It's not big, but it's useful.
I spent a lot of time looking for this, but I couldn't find anything that specifically handled this issue, so I made it myself.
Suppose you want to make a chat function
This offered NO protection against strings like this with large numbers of spaces.
So I fixed it. With my code;
var/String = ClearSpaces(T)
Copyright © 2020 BYOND Software. All rights reserved.