Modulo:Font to span: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
Opss
m Eh ma anche io se cambio i nomi...
Riga 59:
if color~=nil and string.match(style, "color:") then color=nil end
if size~=nil and string.match(style, "font%-size:") then size=nil end
if fontface~=nil and string.match(style, "font%-face:") then fontface=nil end
end
 
Riga 66:
if color~=nil then style=style .. "color:" .. color .. ";" end
if size~=nil then style=style .. "font-size:" .. size .. ";" end
if fontface~=nil then style=style .. "font-face:" .. fontface .. ";" end
span='<span style="' .. style .. '">'
text=string.gsub(str, "<%/?font[^>]*>", "")