fix citeref trim bug
This commit is contained in:
parent
2929b04836
commit
0f2ae4f34d
1 changed files with 2 additions and 1 deletions
|
|
@ -109,7 +109,8 @@ end
|
||||||
local function make_citeref(names, year)
|
local function make_citeref(names, year)
|
||||||
local refs = {}
|
local refs = {}
|
||||||
for i, v in ipairs(names) do
|
for i, v in ipairs(names) do
|
||||||
refs[i] = mw.text.trim(v.last) or mw.text.trim(v.label) or ''
|
local name = v.last or v.label or ''
|
||||||
|
refs[i] = mw.text.trim(name)
|
||||||
if i == 4 then break end
|
if i == 4 then break end
|
||||||
end
|
end
|
||||||
table.insert(refs, year)
|
table.insert(refs, year)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue