B:BD[
2.832] → [
2.832:1309]
local result = {}
table.insert(result, id..' -- ')
if Links[id] then
for rel,val in pairs(Links[id]) do
table.insert(result, rel)
table.insert(result, ':')
if type(val) == 'table' then
table.insert(result, '[')
for _,dest in ipairs(val) do
table.insert(result, dest)
table.insert(result, ' ')
end
table.insert(result, ']')
else
table.insert(result, val)
end
table.insert(result, '|')
end
end
return table.concat(result)
local result = {}
table.insert(result, id..' -- ')
if Links[id] then
for rel,val in pairs(Links[id]) do
table.insert(result, rel)
table.insert(result, ':')
if type(val) == 'table' then
table.insert(result, '[')
for _,dest in ipairs(val) do
table.insert(result, dest)
table.insert(result, ' ')
end
table.insert(result, ']')
else
table.insert(result, val)
end
table.insert(result, '|')
end
end
return table.concat(result)