liquid_feedback_frontend

annotate env/util/trim.lua @ 1728:c06c22e8ee35

Allow to use newlines in unit/area description
author bsw
date Tue Sep 28 13:54:08 2021 +0200 (2021-09-28)
parents de8602f8d9bb
children
rev   line source
bsw/jbe@6 1 function util.trim(string)
mail@236 2 if string == nil then
mail@236 3 return string
mail@236 4 end
bsw@9 5 return (string:gsub("^%s*", ""):gsub("%s*$", ""):gsub("%s+", " "))
mail@236 6 end

Impressum / About Us