|
|
||
|
> function instance:htmlize_link(link)[...]
So, this function needs two parameters: an object and a link!
To solve this, you should create another function:
self.Data = gsub(self.Data, "%[([^]]*)%]", function (link) %self.htmlize_link (%self, link) end)
Why %self instead of self by the way?
On the other hand, the function htmlize_link doesn't need the object and you can redefine it:
function instance.htmlize_link (link)
And maintain the same gsub call.
/ Sebastian Rasmusse