Changes

no edit summary
Line 58: Line 58:  
'Mogador', 'Valiant', 'Gloire', 'Phoenix', 'Lexington',
 
'Mogador', 'Valiant', 'Gloire', 'Phoenix', 'Lexington',
 
 
'Ootomari', 'Wahoo', 'Kaya', 'Kirov', 'Sugi', 'Shimane', 'Minneapolis',
+
'Ootomari', 'Wahoo', 'Kaya', 'Kirov', 'Sugi', 'Shimane Maru', 'Minneapolis',
 +
 +
'Norge', 'Eidsvold', 'Glorious', 'Nankai', 'Nosaki', 'Kashi', 'Dace', 'Leonardo da Vinci', 'Wasp',
 
}
 
}
   Line 151: Line 153:     
function log(message, value)
 
function log(message, value)
tbl.debug = tbl.debug .. string.format('%s: %s\n', message, value)
+
-- tbl.debug = tbl.debug .. string.format('%s: %s\n', message, value)
 
end
 
end
   Line 286: Line 288:  
function showTable(tbl)
 
function showTable(tbl)
   −
local res = format{table_format.header, classes = tbl.classes or ''}
+
local res = { format{table_format.header, classes = tbl.classes or ''} }
    
function add(str)
 
function add(str)
res = res .. str
+
table.insert(res, str)
 
end
 
end
   Line 349: Line 351:  
end
 
end
   −
return res
+
return table.concat(res, '')
    
end
 
end
7,212

edits