Browse Source

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>
Nicolas Goaziou 9 years ago
parent
commit
265e5b9984
1 changed files with 2 additions and 1 deletions
  1. 2 1
      lisp/ox-ascii.el

+ 2 - 1
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