From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Riley Subject: Re: org-babel and empty code blocks : publishing html Date: Thu, 09 Sep 2010 19:24:27 +0200 Message-ID: References: <878w3a5158.fsf@gmail.com> <4C890EBE.3080906@ccbr.umn.edu> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=33288 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OtkrX-0003Bb-Kn for emacs-orgmode@gnu.org; Thu, 09 Sep 2010 13:24:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OtkrW-0002Sd-DX for emacs-orgmode@gnu.org; Thu, 09 Sep 2010 13:24:39 -0400 Received: from lo.gmane.org ([80.91.229.12]:57274) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OtkrW-0002SG-50 for emacs-orgmode@gnu.org; Thu, 09 Sep 2010 13:24:38 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OtkrU-0006ft-1h for emacs-orgmode@gnu.org; Thu, 09 Sep 2010 19:24:36 +0200 Received: from 85.183.18.158 ([85.183.18.158]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 09 Sep 2010 19:24:36 +0200 Received: from rileyrg by 85.183.18.158 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 09 Sep 2010 19:24:36 +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: emacs-orgmode@gnu.org Erik Iverson writes: > Eric Schulte wrote: >> I'd think adding an ":exports none" header argument should be >> sufficient. >> > > If the code block is empty, I doesn't appear so. > > If you put in a literal > > nil > > in the code block, then :exports none does as expected. > >> Best -- Eric >> >> Richard Riley writes: >> >>> On my journal capture template I include a #begin_src and #end_src block >>> as I frequently want to journal code. Being lazy I dont >>> necessarily want to delete this block even if I have no code in that >>> org-entry. Is it possible to suppress the output "nil" which is >>> generated for the html export for empty code blocks? >>> >>> >>> _______________________________________________ >>> 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 >> >> _______________________________________________ >> 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 > > _______________________________________________ > 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 > 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. cheers, r.