From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: [PATCH][ANN] org-html/org-odt Date: Sat, 26 Mar 2011 10:27:40 +0530 Message-ID: <81tyeq8omz.fsf@gmail.com> References: <811v21sjy9.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=40578 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q3LZZ-0005Jp-Mv for emacs-orgmode@gnu.org; Sat, 26 Mar 2011 00:58:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q3LZY-0008GQ-Fp for emacs-orgmode@gnu.org; Sat, 26 Mar 2011 00:58:01 -0400 Received: from mail-iy0-f169.google.com ([209.85.210.169]:57204) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q3LZY-0008GL-BM for emacs-orgmode@gnu.org; Sat, 26 Mar 2011 00:58:00 -0400 Received: by iyf13 with SMTP id 13so2245352iyf.0 for ; Fri, 25 Mar 2011 21:57:59 -0700 (PDT) In-Reply-To: (Sean O'Halpin's message of "Fri, 25 Mar 2011 22:32:16 +0000") 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: Sean O'Halpin Cc: emacs-orgmode@gnu.org Hello Sean Thanks for trying out the new exporter and submitting this patch. I have applied it to my branch. Jambunathan K. > 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