Skip to content

Commit

Permalink
Bugfix for negative spaces in space(field::Symbol)
Browse files Browse the repository at this point in the history
  • Loading branch information
dingraha authored and Azzaare committed Nov 9, 2021
1 parent fca73ef commit d3e5a8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utilities.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
space(field::Symbol)
Return the amount of spaces needed to export entries, for instance to BibTeX format.
"""
space(field) = maxfieldlength - length(string(field))
space(field) = max(maxfieldlength - length(string(field)), 0)

"""
get_delete!(fields::Fields, key::String)
Expand Down

0 comments on commit d3e5a8b

Please sign in to comment.