Markup class wasn't correctly initialized
authorTimm S. Mueller <tmueller@neoscientists.org>
Sat, 15 Dec 2007 17:16:32 +0100
changeset 22447382ae7b824
parent 222 cb91d3398f6e
child 225 67a7baf150c1
Markup class wasn't correctly initialized
cgi-bin/tek/class/loona.lua
     1.1 --- a/cgi-bin/tek/class/loona.lua	Sat Dec 15 16:53:38 2007 +0100
     1.2 +++ b/cgi-bin/tek/class/loona.lua	Sat Dec 15 17:16:32 2007 +0100
     1.3 @@ -12,7 +12,7 @@
     1.4  local cgi = require "tek.class.cgi"
     1.5  local Request = require "tek.class.cgi.request"
     1.6  local util = require "tek.class.loona.util"
     1.7 -local markup = require "tek.class.markup"
     1.8 +local Markup = require "tek.class.markup"
     1.9  
    1.10  local boxed_G = {
    1.11  	string = string, table = table,
    1.12 @@ -1585,11 +1585,9 @@
    1.13  
    1.14  function Loona:domarkup(s)
    1.15  	local t = { }
    1.16 -	local is_dynamic = markup:new { input = s,
    1.17 -		wrfunc = function(s) insert(t, s) end }:run()
    1.18 -	return concat(t), is_dynamic
    1.19 -
    1.20 --- 	return markup.load(s)
    1.21 +	local is_dynamic = Markup:new { input = s, features = "hespcadlintf",
    1.22 +		wrfunc = function(s) table.insert(t, s) end }:run()
    1.23 +	return table.concat(t), is_dynamic
    1.24  end
    1.25  
    1.26