Jump to content

Module:OutputBuffer

विकिपीडिया से
The Earwig (बातचीत | योगदान) (Protected "Module:OutputBuffer": High-risk Lua module: over 10,000 mainspace transclusions ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite))) के द्वारा 09:30, 14 दिसंबर 2015 के बदलाव
return function()
	local buffer = {}
	return function(sep)
		local b = buffer
		buffer = {}
		return table.concat(b, sep)
	end,
	function(text)
		buffer[#buffer + 1] = text
	end,
	function(...)
		buffer[#buffer + 1] = string.format(...)
	end
end