Skip to content

Commit

Permalink
Fix form="long" in style locale
Browse files Browse the repository at this point in the history
  • Loading branch information
zepinglee committed Sep 4, 2024
1 parent b3591a0 commit d1e7e64
Show file tree
Hide file tree
Showing 4 changed files with 2,198 additions and 4 deletions.
4 changes: 4 additions & 0 deletions citeproc/citeproc-node-label.lua
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ function Label:from_node(node)
return o
end

---@param engine CiteProc
---@param state table
---@param context Context
---@return Rendered?
function Label:build_ir(engine, state, context)
-- local variable = context:get_variable(self.variable, self.form)

Expand Down
2 changes: 1 addition & 1 deletion citeproc/citeproc-node-locale.lua
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ function Terms:from_node(node)
end

local key = term.name
if form then
if form and form ~= "long" then
key = key .. '/form-' .. form
end
-- if gender then
Expand Down
Loading

0 comments on commit d1e7e64

Please sign in to comment.