Modulo:Tracce/sandbox: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
m correggo
se è attivato il corsivo, individua due apici, altrimenti tre
Riga 9:
if str:sub(1,1) == "'" then str = "<span></span>" .. str end
if str:sub(-1,-1) == "'" then str = str .. "<span></span>" end
if str:find("''") then categories[#categories+1] = unexpected_markup end
end
return str
Line 26 ⟶ 25:
local interprete = args["Interprete" .. i] or ""
if interprete ~= "" then table.insert(row_elements, interprete .. " – ") end
ifcorsivo = (corsivo and args["Corsivo" .. i] ~= "no") or
(not corsivo and (args["Corsivo" .. i] == "sì" or args["Corsivo" .. i] == "si")) then
if corsivo then
titolo = "''" .. safeforitalics(titolo) .. "''"
end
if titolo:find(corsivo and "''" or "'''") then
if str:find("''") then categories[#categories+1] = unexpected_markup end
end
table.insert(row_elements, titolo)
local featuring = args["Featuring" .. i] or ""