How do I make a multiline string into a single line string in lua?
I've tried this:
function removeMultilines(str)
return str:gsub("\n")
end
But it doesn't work.
So basically, I would want to turn str1 into str2
local str1 = [[Hey,
how are you today?
Whats your name?]]
local str2 = "Hey, how are you today? Whats your name?"
Does anyone know how I can possibly approach that? Any help is welcome, just comment :D