summaryrefslogtreecommitdiff
path: root/lisp/textmodes/reftex-cite.el
diff options
context:
space:
mode:
authorTassilo Horn <tsdh@gnu.org>2013-04-10 16:48:44 +0200
committerTassilo Horn <tsdh@gnu.org>2013-04-10 16:48:44 +0200
commitda3cda2d10f5cbe398ea570e752a9921df7e18d8 (patch)
tree5b2a5e485d79181f37accada0a50b61511be4d3e /lisp/textmodes/reftex-cite.el
parent78ce603d02dd6f2492fb0178bb148d3d76e4312b (diff)
downloademacs-da3cda2d10f5cbe398ea570e752a9921df7e18d8.tar.gz
* textmodes/reftex-cite.el (reftex-parse-bibtex-entry): Don't cut
off leading { and trailing } from field values.
Diffstat (limited to 'lisp/textmodes/reftex-cite.el')
-rw-r--r--lisp/textmodes/reftex-cite.el6
1 files changed, 0 insertions, 6 deletions
diff --git a/lisp/textmodes/reftex-cite.el b/lisp/textmodes/reftex-cite.el
index 079101b56ee..ca29709de2e 100644
--- a/lisp/textmodes/reftex-cite.el
+++ b/lisp/textmodes/reftex-cite.el
@@ -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))