Modulo:Font to span: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
m +abbellimento estetico, riorganizzo commenti
m minuzie
Riga 64:
--concatena tutto in span + style
if style==nil then style="" end
if not string.match(style, "[%a ]+[^;]$") then style = style .. ";" end
 
if color~=nil then style=style .. "color:" .. color .. ";" end
if size~=nil then style=style .. "font-size:" .. size .. ";" end
if face~=nil then style=style .. "font-face:" .. face .. ";" end
string.gsub(style, '";+$"', '"'")
 
span='<span style="' .. style .. '">'