summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Le Maguer <slemaguer@coli.uni-saarland.de>2017-02-05 08:11:16 +0100
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2017-02-05 09:21:55 +0100
commit3dc4fa9d9d05e0c52bc289675925c101f801bd44 (patch)
tree2ae0964e0b5a8049d76af8422a987312a403316e
parent83cea905991b2761f98838cef9b867985d60c637 (diff)
downloadorg-mode-3dc4fa9d9d05e0c52bc289675925c101f801bd44.tar.gz
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
-rw-r--r--contrib/lisp/ox-bibtex.el2
1 files changed, 1 insertions, 1 deletions
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