String Manipulation issue
Hey there.
I'm basically trying to make use of gsub or something like that to add spaces in long messages so they dont cut off with those stupid spaces(Basically inside of a messageframe where long messages puts huge gaps above and underneath it).
I've been thinking about using :len() and then grab the length and divide it on four.
Then somehow use the position to add a space, grab the first position add another 4th so its 2/4th add a new space and repeat. Now sure how to make that work through.
This would only be triggered if no spaces are found in the string at all.
tl;dr version: How can I find a specific length position inside of a string
I don't really have any code already made for this so nothing to share. Its meant to be forwarded into a messageframe and this simply so it doesn't add those annoying gaps above and underneath the message.
|