Skip to content

Commit

Permalink
Update nesting
Browse files Browse the repository at this point in the history
  • Loading branch information
cthoyt committed Sep 18, 2024
1 parent c7c13b4 commit 1cc8a6f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions data/filters/prepare-credit.lua
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@ local function prepare_credit (meta)
role = pandoc.utils.stringify(roleDict.type)
if invalidRole(role) then
print("invalid role for author " .. author.name .. ": " .. role)
end
if roleDict.degree then
elseif roleDict.degree then
degree = capitalize_first_letter(pandoc.utils.stringify(roleDict.degree))
if invalidDegree(degree) then
print("invalid degree for author " .. author.name .. ": " .. degree)
else
table.insert(roleList, role .. " (" .. degree .. ")")
end
table.insert(roleList, role .. " (" .. degree .. ")")
else
table.insert(roleList, role)
end
Expand Down

0 comments on commit 1cc8a6f

Please sign in to comment.