Modulo:Font to span: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
m ordine inverso, altrimenti trova il primo
m semplifico e correggo errore
Riga 17:
 
--ricava face
face=string.match(s, "face%s*=%s*(%a+)") or string.match(s, 'face%s*=%s*"([%a, ]+)"')
if face==nil then face=string.match(s, 'face%s*=%s*"([%a, ]+)"') end
 
--ricava size
Line 67 ⟶ 66:
if z>7 then size="7"
elseif z<-2 then size="-2"
elseif z>34 and string.match(size, "^%+%d$") then size="+34" end
end
end