summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoost Kremers <joostkremers@fastmail.fm>2015-01-02 11:15:28 +0200
committerJoost Kremers <joostkremers@fastmail.fm>2015-01-02 11:15:28 +0200
commit574b1c8775c68eefec1fe304060a8e31654b4541 (patch)
treef705c0cc9348f0422e63b8f67502feb920425da1
parent694d95acdb4fe052d34a7cb8c9a6ad7383b752e0 (diff)
Stop before comma when moving to start of field contents.
This fixes issue #59.
-rw-r--r--parsebib.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/parsebib.el b/parsebib.el
index 0149ff9..5c53219 100644
--- a/parsebib.el
+++ b/parsebib.el
@@ -302,7 +302,7 @@ Return a cons (FIELD . VALUE), or NIL if no field was found."
(let ((beg (point)))
(if (parsebib--looking-at-goto-end (concat "\\(" parsebib--bibtex-identifier "\\)[ \t\n\f]*=") 1)
(let ((field-type (buffer-substring-no-properties beg (point))))
- (skip-chars-forward "#%'(),=} \n\t\f" limit) ; move to the field contents
+ (skip-chars-forward "#%'()=} \n\t\f" limit) ; move to the field contents
(let* ((beg (point))
(field-contents (buffer-substring-no-properties beg (parsebib--find-end-of-field limit))))
(cons field-type field-contents)))))))