Jump to content

Module:User:Mr. Stradivarius/whitespacebug

From Wikipedia, the free encyclopedia
p = {}

function p.test(frame)

    origArgs = {'', ' ', '  ', '\n', 'test'}

    local args = {}
    for k, v in pairs(origArgs) do
        if v ~= '' then
            args[k] = v
        end
    end

	local ret = ''
    for i, v in ipairs(origArgs) do
    	ret = ret .. '*' .. v .. '\n'
    end
    return ret
end

return p