Fix text.trim_spacing

This commit is contained in:
Lars Mueller 2021-09-18 14:08:09 +02:00
parent 651593639c
commit 9325d65ceb

@ -58,7 +58,7 @@ end
trim_right = trim_end trim_right = trim_end
function trim_spacing(text) function trim_spacing(text)
return text:match"%s*(.-)%s*" return text:match"^%s*(.-)%s*$"
end end
local inputstream_metatable = { local inputstream_metatable = {