0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-09-29 18:36:26 +00:00

ox-texinfo: Fix missing contents in headings out of TOC

* lisp/ox-texinfo.el (org-texinfo-section): Include contents even in
  headings out of TOC.
This commit is contained in:
Nicolas Goaziou 2017-10-23 14:55:05 +02:00
parent c024bec29e
commit e59199e3a8

View file

@ -1375,8 +1375,12 @@ contextual information."
CONTENTS holds the contents of the section. INFO is a plist
holding contextual information."
(let ((parent (org-export-get-parent-headline section)))
(when (and parent (not (org-export-excluded-from-toc-p parent info)))
(org-trim (concat contents "\n" (org-texinfo-make-menu parent info))))))
(when parent ;first section is handled in `org-texinfo-template'
(org-trim
(concat contents
"\n"
(and (not (org-export-excluded-from-toc-p parent info))
(org-texinfo-make-menu parent info)))))))
;;;; Special Block