11,201
edits
TheNightAvl (talk | contribs) No edit summary |
TheNightAvl (talk | contribs) No edit summary |
||
Line 51: | Line 51: | ||
while args[i] or args[i+1] do | while args[i] or args[i+1] do | ||
if args[i] == "" or args[i] == nil then | if args[i] == "" or args[i] == nil then | ||
out = out .. "; " | if data[args[i+1]] then | ||
out = out .. " — " | |||
else | |||
out = out .. "; " | |||
end | |||
elseif data[args[i]] and (args[i-1] == "" or args[i-1] == nil) and args[i+1] then | |||
language = data[args[i]] | |||
out = out .. export.get_flag(language.code) .. " " | |||
else | else | ||
term, term_args = m_inline.parse(args[i]) | term, term_args = m_inline.parse(args[i]) |