Add text.trim_spacing

This commit is contained in:
Lars Mueller 2021-08-29 15:41:51 +02:00
parent d1a285be33
commit c13f21c444

@ -57,6 +57,10 @@ end
trim_right = trim_end trim_right = trim_end
function trim_spacing(text)
return text:match"%s*(.-)%s*"
end
local inputstream_metatable = { local inputstream_metatable = {
__index = {read = function(self, count) __index = {read = function(self, count)
local cursor = self.cursor + 1 local cursor = self.cursor + 1