From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Re: org-babel and empty code blocks : publishing html Date: Fri, 10 Sep 2010 12:37:02 -0600 Message-ID: <87y6b9cunl.fsf@gmail.com> References: <878w3a5158.fsf@gmail.com> <4C890EBE.3080906@ccbr.umn.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=42446 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ou8TH-0007HB-Nq for emacs-orgmode@gnu.org; Fri, 10 Sep 2010 14:37:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ou8TG-00078J-A9 for emacs-orgmode@gnu.org; Fri, 10 Sep 2010 14:37:11 -0400 Received: from mail-iw0-f169.google.com ([209.85.214.169]:48890) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ou8TG-000787-4w for emacs-orgmode@gnu.org; Fri, 10 Sep 2010 14:37:10 -0400 Received: by iwn33 with SMTP id 33so3543478iwn.0 for ; Fri, 10 Sep 2010 11:37:09 -0700 (PDT) In-Reply-To: (Richard Riley's message of "Thu, 09 Sep 2010 19:24:27 +0200") 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: Richard Riley Cc: emacs-orgmode@gnu.org Hi Richard, Richard Riley writes: [...] > > Hmm, I think maybe I am getting confused here then. Maybe its better if > I show an example:- > > ,---- > | **** TODO weather in agenda > | SCHEDULED: <2010-09-10 Fri> > | :PROPERTIES: > | :DateCreated: <2010-09-09 Thu 15:07> > | :END: > | > | test me one two 3 > | > | #+begin_src emacs-lisp > | #+end_src > | > | More test > `---- > > Note the empty src block. When I export to html I dont want this code > evaled (it isnt when there IS elisp in there - I just see the code as > nicely HTML'd) and I dont want a nil in the output when its empty. > When I export the above to html, I get the following... --8<---------------cut here---------------start------------->8---

test me one two 3

More test

--8<---------------cut here---------------end--------------->8--- In my case the code block is not evaluated. Do you have any buffer wide header arguments? What does the following print for you? #+begin_src emacs-lisp (mapcar (lambda (pair) (list (car pair) (cdr pair))) params) #+end_src for me it returns the following #+results: | :cache | no | | :colnames | no | | :comments | | | :exports | code | | :hlines | yes | | :noweb | no | | :results | replace | | :session | none | | :shebang | | | :tangle | no | Best -- Eric > > cheers, > > r. > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode