editor count, compare numbers to numbers

This commit is contained in:
Trappist the monk 2026-10-19 13:31:21 +13:00 • committed by Jonathan Harker
parent c259ed2704
commit 3ff8162b8e

View file

@ -838,7 +838,7 @@ local function _cite_q (citeq_args)
end
end
for i, editor in pairs(names.editors or {}) do
if not editor.last and i <= (citeq_args['display-editors'] or editor_count) then
if not editor.last and i <= (tonumber (citeq_args['display-editors']) or tonumber (editor_count)) then
if editor.qid then
-- ignore anonymous
if editor.qid ~= 'Q4233718' then