Module:Pretty-pre

--

-- Automatically adds a space before each line. Like the tag, but allows -- markup (e.g. bold or italics), transclusions, etc.

local p = {}

function p._main(s) return ' ' .. s:gsub('\n$', ''):gsub('\n', '\n ') end

function p.main(frame) return p._main(frame:getParent.args[1] or frame.args[1] or '') end

return p

-- -- (Add categories here.)