From 3dc4fa9d9d05e0c52bc289675925c101f801bd44 Mon Sep 17 00:00:00 2001 From: Sebastien Le Maguer Date: Sun, 5 Feb 2017 08:11:16 +0100 Subject: [PATCH] ox-bibtex: Take key with spaces or non-alphabetic characters into account * 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. TINYCHANGE --- 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 56dec3837..fb34a5eee 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.11.4.GIT