[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] [PATCH] ox-bibtex.el: take key with spaces or non-alphabetic charact
From: |
Sebastien Le Maguer |
Subject: |
[O] [PATCH] ox-bibtex.el: take key with spaces or non-alphabetic characters into account |
Date: |
Sun, 5 Feb 2017 08:11:16 +0100 |
* ox-bibtex.el (org-bibtex-process-bib-files)
solve a bug in which ox-bibtex was not considering enterily keys like "Author
et&bsp; al., 1999" as valid.
---
contrib/lisp/ox-bibtex.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/contrib/lisp/ox-bibtex.el b/contrib/lisp/ox-bibtex.el
index 56dec38..fb34a5e 100644
--- a/contrib/lisp/ox-bibtex.el
+++ b/contrib/lisp/ox-bibtex.el
@@ -235,7 +235,7 @@ Return new parse tree."
;; Update `org-bibtex-html-entries-alist'.
(goto-char (point-min))
(while (re-search-forward
- "a name=\"\\([-_a-zA-Z0-9:]+\\)\">\\(\\w+\\)" nil t)
+ "a name=\"\\([-_a-zA-Z0-9:]+\\)\">\\([^<]+\\)" nil t)
(push (cons (match-string 1) (match-string 2))
org-bibtex-html-entries-alist)))
;; Open produced HTML file, wrap references within a block and
--
2.9.3