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:
Nicolas Goaziou 2014-08-04 01:12:45 +02:00
parent b3fdf490b7
commit 6f73155454
1 changed files with 2 additions and 3 deletions

View File

@ -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"