cgi-bin/tek/class/loona.lua
changeset 225 67a7baf150c1
parent 224 47382ae7b824
parent 223 b2151b233fa7
child 234 b798ec008fe2
     1.1 --- a/cgi-bin/tek/class/loona.lua	Sat Dec 15 17:16:32 2007 +0100
     1.2 +++ b/cgi-bin/tek/class/loona.lua	Sat Dec 15 17:34:15 2007 +0100
     1.3 @@ -81,6 +81,10 @@
     1.4  	end
     1.5  end
     1.6  
     1.7 +function Markup:indent()
     1.8 +	return '<div class="indent">', '</div>'
     1.9 +end
    1.10 +
    1.11  -------------------------------------------------------------------------------
    1.12  --	class Session:
    1.13  -------------------------------------------------------------------------------
    1.14 @@ -1585,7 +1589,8 @@
    1.15  
    1.16  function Loona:domarkup(s)
    1.17  	local t = { }
    1.18 -	local is_dynamic = Markup:new { input = s, features = "hespcadlintf",
    1.19 +	local is_dynamic = Markup:new { input = s,
    1.20 +		features = "hespcadlintf", indentchar = " ",
    1.21  		wrfunc = function(s) table.insert(t, s) end }:run()
    1.22  	return table.concat(t), is_dynamic
    1.23  end