diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2015-11-06 20:58:14 +0100 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2015-11-06 20:58:14 +0100 |
commit | 265e5b9984818f76dea8f5147af0c4a939cf457b (patch) | |
tree | 6c65d21975dd81db69f68cda3fafe832c71fcc45 | |
parent | cce317faf6550e7ff48fe8bccbb084c64914a549 (diff) | |
download | org-mode-265e5b9984818f76dea8f5147af0c4a939cf457b.tar.gz |
ox-ascii: Fix footnotes export
* lisp/ox-ascii.el (org-ascii-inner-template): Since 47265b3, footnotes
definitions' contents do no start with `org-data'. Update code.
Reported-by: Samuel Wales <samologist@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/102648>
-rw-r--r-- | lisp/ox-ascii.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/ox-ascii.el b/lisp/ox-ascii.el index 59e311b..d1ac747 100644 --- a/lisp/ox-ascii.el +++ b/lisp/ox-ascii.el @@ -1081,7 +1081,8 @@ holding export options." ;; full-fledged definitions. (org-trim (let ((def (nth 2 ref))) - (if (eq (org-element-type def) 'org-data) + (if (org-element-map def org-element-all-elements + #'identity info 'first-match) ;; Full-fledged definition: footnote ID is ;; inserted inside the first parsed ;; paragraph (FIRST), if any, to be sure |