(bibtex-format-entry): Fix previous change.

This commit is contained in:
Roland Winkler 2009-01-16 15:10:16 +00:00
parent e7abcdfba9
commit 8a62c4708e

View file

@ -2006,11 +2006,11 @@ Formats current entry according to variable `bibtex-entry-format'."
(if (looking-at bibtex-field-const)
(goto-char (match-end 0))
(let ((boundaries (bibtex-parse-field-string)))
(unless (looking-at right-delim-re)
(unless (looking-at left-delim-re)
(delete-char 1)
(insert (bibtex-field-left-delimiter)))
(goto-char (1- (cdr boundaries)))
(if (looking-at left-delim-re)
(if (looking-at right-delim-re)
(forward-char)
(delete-char 1)
(insert (bibtex-field-right-delimiter)))))