Hi,
I was getting the error:
org-html-insert-toc: Wrong type argument: char-or-string-p, nil
when trying to generate an HTML file with
#+OPTIONS: toc:nil
The patch below seems to fix this.
Regards,
Sean
index bd53741..37eddf4 100644
--- a/lisp/org-html.el
+++ b/lisp/org-html.el
@@ -2113,7 +2113,7 @@ the alist of previous items."
(defun org-html-end-export ()
;; insert the table of contents
- (when (and org-export-with-toc (not body-only))
+ (when (and org-export-with-toc (not body-only) org-parse-table-of-contents)
(org-html-insert-toc org-parse-table-of-contents))
;; remove empty paragraphs