summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2021-06-02 17:22:41 +0200
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2021-06-02 17:22:41 +0200
commitf70e36252ac4eb04c67a60aec7d39515e10277bf (patch)
treedfdad941c0a0685531e21037b733e5cb5a56e036
parenta0a87d55cbfea043a55e484e262c48b8fcdfdb47 (diff)
parent093c94e31b875107e749449ba0c44e5719c120f8 (diff)
downloadorg-mode-f70e36252ac4eb04c67a60aec7d39515e10277bf.tar.gz
Merge branch 'maint'
-rw-r--r--lisp/ox-texinfo.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/ox-texinfo.el b/lisp/ox-texinfo.el
index 22e93c9..5d09cc2 100644
--- a/lisp/ox-texinfo.el
+++ b/lisp/ox-texinfo.el
@@ -1233,13 +1233,13 @@ holding contextual information."
:texinfo-entries-cache)))
(cached-entries (gethash scope cache 'no-cache)))
(if (not (eq cached-entries 'no-cache)) cached-entries
- (let ((sections (org-texinfo--sectioning-structure info)))
+ (let* ((sections (org-texinfo--sectioning-structure info))
+ (max-depth (length sections)))
(puthash scope
(cl-remove-if
(lambda (h)
(or (org-not-nil (org-export-get-node-property :COPYING h t))
- (>= (org-export-get-relative-level h info)
- (length sections))))
+ (< max-depth (org-export-get-relative-level h info))))
(org-export-collect-headlines info 1 scope))
cache)))))