Skip to content

Commit

Permalink
Fix error in check_entry (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat authored Aug 13, 2024
1 parent c9c8efe commit 68d243f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/bibtex.jl
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@ function check_entry(fields, check, id)
end
end
if !at_least_one
push!(errors, "{" * foldl((x, y) -> "$x$y", t_field; init="")[2:end] * "}")
s = foldl((x, y) -> "$x$y", t_field; init="")
# To remove the starting `≡`, we need `nextind` as it is a
# multibyte character
push!(errors, "{" * s[nextind(s, 1):end] * "}")
end
else
get(fields, t_field, "") == "" && push!(errors, t_field)
Expand Down

0 comments on commit 68d243f

Please sign in to comment.