branch: externals/org
commit abbc024aef5ce86f9c181b7f8f6048b04b57c4c1
Merge: 21dfa6fe89 691ebb1f59
Author: Ihor Radchenko <yanta...@posteo.net>
Commit: Ihor Radchenko <yanta...@posteo.net>

    Merge branch 'bugfix'
---
 lisp/ox-org.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/ox-org.el b/lisp/ox-org.el
index cf334dcdb2..2394a197e5 100644
--- a/lisp/ox-org.el
+++ b/lisp/ox-org.el
@@ -245,7 +245,7 @@ a communication channel."
    ;; them are included in the result.
    (let ((footnotes
          (org-element-map
-             (list (org-element-lineage section 'headline) section)
+             (list (or (org-element-lineage section 'headline) "") section)
              'footnote-reference
            (lambda (fn)
              (and (eq (org-element-property :type fn) 'standard)

Reply via email to