Skip to content

Commit

Permalink
chore(packages): Some LDoc tags are incorrect in the CSL engine
Browse files Browse the repository at this point in the history
  • Loading branch information
Omikhleia authored and Didier Willis committed Jan 1, 2025
1 parent 680df8c commit 5e6e745
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/bibtex/csl/engine.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1492,15 +1492,15 @@ function CslEngine:_process (entries, mode)
end

--- Generate a citation string.
-- @tparam table entry List of CSL entries
-- @tparam table entries List of CSL entries
-- @treturn string The XML citation string
function CslEngine:cite (entries)
entries = type(entries) == "table" and not entries.type and entries or { entries }
return self:_process(entries, "citation")
end

--- Generate a reference string.
-- @tparam table entry List of CSL entries
-- @tparam table entries List of CSL entries
-- @treturn string The XML reference string
function CslEngine:reference (entries)
entries = type(entries) == "table" and not entries.type and entries or { entries }
Expand Down
1 change: 0 additions & 1 deletion packages/bibtex/csl/locale.lua
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@ end
--- Lookup an ordinal term in the locale.
-- Reserved for ordinal terms.
-- @tparam number number The numeric value to be formatted
-- @tparam string name The name of the term
-- @tparam string form The form of the term (default: "short")
-- @tparam string genderf The gender-form of the term (default: "neuter")
-- @tparam boolean plural Whether to return the plural form (default: false)
Expand Down

0 comments on commit 5e6e745

Please sign in to comment.