Skip to content

Commit e560e10

Browse files
committed
Update prepare-credit.lua
1 parent 0654c52 commit e560e10

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

data/filters/prepare-credit.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ local function prepare_credit (meta)
7171
degree = capitalize_first_letter(pandoc.utils.stringify(roleDict.degree))
7272
if invalidDegree(degree) then
7373
print("invalid degree for author " .. author.name .. ": " .. degree)
74+
-- even though the degree is invalid, add the role anyway
75+
table.insert(roleList, role)
7476
else
7577
table.insert(roleList, role .. " (" .. degree .. ")")
7678
end

0 commit comments

Comments
 (0)