Commit cfa67c7c authored by User expired's avatar User expired
Browse files

bib-format: Remove trailing whitespace in fields

parent c7adcb36
......@@ -105,6 +105,9 @@ do
sed -i '$s/"}$/}\n}/' "$tmpfile"
sed -i -r 's/^ ([A-Za-z][^={"]*[^ ={"]) = ([^{].*[^},])(,*)$/ \1 = {\2}\3/' "$tmpfile"
# Remove trailing whitespace within fields.
sed -i 's/ *\(},\?\)$/\1/' "$tmpfile"
# Append single blank line.
sed -i '$G' "$tmpfile"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment