ox-texinfo: Check options before inserting TOC
* lisp/ox-texinfo.el (org-texinfo-template): Make sure table of contents are allowed before inserting them.
This commit is contained in:
parent
b3fdf490b7
commit
6f73155454
|
@ -783,9 +783,8 @@ holding export options."
|
|||
(replace-regexp-in-string "^" "@author " subauthor))))))
|
||||
(and copying "@page\n@vskip 0pt plus 1filll\n@insertcopying\n")
|
||||
"@end titlepage\n\n"
|
||||
"@c Output the table of contents at the beginning.\n"
|
||||
"@contents\n\n"
|
||||
|
||||
;; Table of contents.
|
||||
(and (plist-get info :with-toc) "@contents\n\n")
|
||||
;; Configure Top Node when not for Tex
|
||||
"@ifnottex\n"
|
||||
"@node Top\n"
|
||||
|
|
Loading…
Reference in New Issue