summaryrefslogtreecommitdiff
path: root/biblio/citation-style-language/citeproc-node-number.lua
diff options
context:
space:
mode:
Diffstat (limited to 'biblio/citation-style-language/citeproc-node-number.lua')
-rw-r--r--biblio/citation-style-language/citeproc-node-number.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/biblio/citation-style-language/citeproc-node-number.lua b/biblio/citation-style-language/citeproc-node-number.lua
index b8a55d3c66..0be68cba0f 100644
--- a/biblio/citation-style-language/citeproc-node-number.lua
+++ b/biblio/citation-style-language/citeproc-node-number.lua
@@ -59,8 +59,9 @@ function Number:build_ir(engine, state, context)
local number
if not state.suppressed[self.variable] then
number = context:get_variable(self.variable, self.form)
+ ---@cast number string | number?
end
- if not number then
+ if not number or number == "" then
local ir = Rendered:new({}, self)
ir.group_var = GroupVar.Missing
return ir