瀏覽代碼

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 年之前
父節點
當前提交
265e5b9984
共有 1 個文件被更改,包括 2 次插入1 次删除
  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