Skip to content

Commit

Permalink
Update prepare-credit.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
cthoyt committed Sep 18, 2024
1 parent 0654c52 commit e560e10
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions data/filters/prepare-credit.lua
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ local function prepare_credit (meta)
degree = capitalize_first_letter(pandoc.utils.stringify(roleDict.degree))
if invalidDegree(degree) then
print("invalid degree for author " .. author.name .. ": " .. degree)
-- even though the degree is invalid, add the role anyway
table.insert(roleList, role)
else
table.insert(roleList, role .. " (" .. degree .. ")")
end
Expand Down

0 comments on commit e560e10

Please sign in to comment.