From d3e5a8bc20e909e6135673967d8d48063c4584c5 Mon Sep 17 00:00:00 2001 From: Daniel Ingraham Date: Mon, 8 Nov 2021 15:09:32 +0000 Subject: [PATCH] Bugfix for negative spaces in `space(field::Symbol)` --- src/utilities.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utilities.jl b/src/utilities.jl index 957fb3d..82fc707 100644 --- a/src/utilities.jl +++ b/src/utilities.jl @@ -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)