Изменения

wikitable
Строка 183: Строка 183:  
for _, attr in ipairs (tbl.__attrs) do
 
for _, attr in ipairs (tbl.__attrs) do
 
tag [attr.name] = attr.value
 
tag [attr.name] = attr.value
 +
end
 +
if tag.__name == 'table' then
 +
tag.class = 'wikitable'
 
end
 
end
 
for _, node in ipairs (tbl) do
 
for _, node in ipairs (tbl) do