summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Dominik <carsten.dominik@gmail.com>2011-10-06 10:10:47 +0200
committerCarsten Dominik <carsten.dominik@gmail.com>2011-10-06 10:10:47 +0200
commitc18896841ef91216ca37e4fa8071752ba2a0eeb8 (patch)
tree5e19570bb7e0c120d8327708d708dfad8c02a99e
parent2978501ad01c1fc33c34119ad431fb68746c6f92 (diff)
downloadorg-mode-c18896841ef91216ca37e4fa8071752ba2a0eeb8.tar.gz
Allow dashes and underscores in bibtex citation keys
* contrib/lisp/org-exp-bibtex.el (org-export-bibtex-preprocess): Allow dashes and underscores in bibtex citation keys. TINYCHANGE Patch by Nik Putnam
-rw-r--r--contrib/lisp/org-exp-bibtex.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/lisp/org-exp-bibtex.el b/contrib/lisp/org-exp-bibtex.el
index daccafd..5705bfb 100644
--- a/contrib/lisp/org-exp-bibtex.el
+++ b/contrib/lisp/org-exp-bibtex.el
@@ -102,7 +102,7 @@
(save-match-data
(insert-file-contents (concat file ".html"))
(goto-char (point-min))
- (while (re-search-forward "a name=\"\\(\\w+\\)\">\\(\\w+\\)" nil t)
+ (while (re-search-forward (org-re "a name=\"\\([-_[:word:]]+\\)\">\\([[:word:]]+\\)") nil t)
(setq oebp-cite-plist (cons (cons (match-string 1) (match-string 2)) oebp-cite-plist)))
(goto-char (point-min))
(while (re-search-forward "<hr>" nil t)