From: Sebastien Le Maguer <slemaguer@coli.uni-saarland.de>
To: org mode <emacs-orgmode@gnu.org>
Subject: [PATCH] ox-bibtex.el: take key with spaces or non-alphabetic characters into account
Date: Sun, 5 Feb 2017 08:11:16 +0100 [thread overview]
Message-ID: <877f55f6fh.fsf@coli.uni-saarland.de> (raw)
In-Reply-To: <87shnvrmwq.fsf@nicolasgoaziou.fr>
* 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
next prev parent reply other threads:[~2017-02-05 7:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-22 19:21 more global keys in ox-bibtex Sébastien Le Maguer
2017-02-03 21:21 ` Nicolas Goaziou
2017-02-05 7:11 ` Sebastien Le Maguer [this message]
2017-02-05 8:23 ` [PATCH] ox-bibtex.el: take key with spaces or non-alphabetic characters into account Nicolas Goaziou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877f55f6fh.fsf@coli.uni-saarland.de \
--to=slemaguer@coli.uni-saarland.de \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).