Export: Allow for TOC generation if body-only is set
commit6fabe46cc74fcc1b606a9d5c70ef1e59a696ba2d
authorChris Gray <chrismgray@gmail.com>
Tue, 3 Apr 2012 16:32:56 +0000 (3 10:32 -0600)
committerBastien Guerry <bzg@altern.org>
Wed, 4 Apr 2012 06:54:14 +0000 (4 08:54 +0200)
treea046c03f98abf4b449554f77bf8e45cf59554720
parent187f77a20afde642687de6ec032bbdf19c22473a
Export: Allow for TOC generation if body-only is set

* lisp/org-html.el (org-export-as-html): Remove the check for
body-only in the code for generating tables of contents.

The docstring for org-export-as-html states that the body-only flag
removes everything outside the <body></body> tags (inclusive).  Since
the table of contents is inside these tags, it should be exported when
requested even if the body-only flag is set.
lisp/org-html.el