From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sean O'Halpin" Subject: Re: [PATCH][ANN] org-html/org-odt Date: Fri, 25 Mar 2011 22:32:16 +0000 Message-ID: References: <811v21sjy9.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from [140.186.70.92] (port=56660 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q3FYI-0004kx-ML for emacs-orgmode@gnu.org; Fri, 25 Mar 2011 18:32:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q3FYH-0004x6-Hm for emacs-orgmode@gnu.org; Fri, 25 Mar 2011 18:32:18 -0400 Received: from mail-bw0-f41.google.com ([209.85.214.41]:34519) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q3FYH-0004x1-9H for emacs-orgmode@gnu.org; Fri, 25 Mar 2011 18:32:17 -0400 Received: by bwz17 with SMTP id 17so1494186bwz.0 for ; Fri, 25 Mar 2011 15:32:16 -0700 (PDT) In-Reply-To: <811v21sjy9.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Jambunathan K Cc: emacs-orgmode@gnu.org 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