* textmodes/reftex-cite.el (reftex-parse-bibtex-entry): Don't cut

off leading { and trailing } from field values.
This commit is contained in:
Tassilo Horn 2013-04-10 16:48:44 +02:00
parent 78ce603d02
commit da3cda2d10
2 changed files with 5 additions and 6 deletions

View file

@ -1,3 +1,8 @@
2013-04-10 Tassilo Horn <tsdh@gnu.org>
* textmodes/reftex-cite.el (reftex-parse-bibtex-entry): Don't cut
off leading { and trailing } from field values.
2013-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
* emacs-lisp/timer.el (timer--check): New function.

View file

@ -514,12 +514,6 @@
;; remove extra whitespace
(while (string-match "[\n\t\r]\\|[ \t][ \t]+" field)
(setq field (replace-match " " nil t field)))
;; remove leading garbage
(if (string-match (if raw "^[ \t]+" "^[ \t{]+") field)
(setq field (replace-match "" nil t field)))
;; remove trailing garbage
(if (string-match (if raw "[ \t]+$" "[ \t}]+$") field)
(setq field (replace-match "" nil t field)))
(push (cons key field) alist))))
alist))