Skip to content

Commit

Permalink
fixup! feat(core): Add lightweight CSL engine
Browse files Browse the repository at this point in the history
  • Loading branch information
Omikhleia authored and Didier Willis committed Jul 14, 2024
1 parent a819ac8 commit ab4b3a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion csl/core/engine.lua
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,6 @@ end
function CslEngine:_date (options, content, entry)
local variable = SU.required(options, "variable", "CSL number")
local date = entry[variable]
--self:_addGroupVariable(variable, date)
if date then
if options.form then
-- Use locale date format (form is either "numeric" or "text")
Expand All @@ -606,6 +605,8 @@ function CslEngine:_date (options, content, entry)
t = self:_render_affixes(t, options)
t = self:_render_display(t, options)
return t
else
self:_addGroupVariable(variable, false)
end
end

Expand Down

0 comments on commit ab4b3a4

Please sign in to comment.