txtu added

This commit is contained in:
p.kosyh 2009-09-10 18:24:31 +00:00
parent 6ba5576fe0
commit a39605bfaa
2 changed files with 11 additions and 0 deletions

View file

@ -21,6 +21,10 @@ end;\n\
iface.title = function(self, str)\n\
return nil\n\
end;\n\
iface.under = function(self, str)\n\
if str == nil then return nil; end; \n\
return cat('<u>',str,'</u>');\n\
end;\n\
iface.em = function(self, str)\n\
if str == nil then return nil; end; \n\
return cat('<i>',str,'</i>');\n\

View file

@ -49,6 +49,10 @@ function txtb(v)
return iface:bold(v)
end
function txtu(v)
return iface:under(v)
end
function fmt(...)
local i, res
if arg == nil then
@ -1328,6 +1332,9 @@ iface = {
bold = function(self, str)
return str;
end,
under = function(self, str)
return str;
end,
xref = function(self, str, obj)
-- return "@"..str.."{"..obj.."}";
local o = ref(here():srch(obj));