Skip to content

Commit 4d4bae5

Browse files
OmikhleiaDidier Willis
authored andcommitted
fix(packages): Option "plural" on bibliography terms can be false
Some styles explicitly set plural=false (though this is the default value) and we were missing a boolean conversion, so we always assumed true in that case...
1 parent 97453b1 commit 4d4bae5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/bibtex/csl/engine.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ function CslEngine:_text (options, content, entry)
482482
SU.error("CSL macro " .. options.macro .. " not found")
483483
end
484484
elseif options.term then
485-
t = self:_render_term(options.term, options.form, options.plural)
485+
t = self:_render_term(options.term, options.form, SU.boolean(options.plural, false))
486486
elseif options.variable then
487487
variable = options.variable
488488
t = entry[variable]

0 commit comments

Comments
 (0)