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:16:38 +0200 Message-ID: References: <878w3a5158.fsf@gmail.com> <4C890EBE.3080906@ccbr.umn.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=42356 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Otkjs-0000V9-Oe for emacs-orgmode@gnu.org; Thu, 09 Sep 2010 13:16:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Otkjq-00019C-Vh for emacs-orgmode@gnu.org; Thu, 09 Sep 2010 13:16:44 -0400 Received: from mail-ew0-f41.google.com ([209.85.215.41]:54579) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Otkjq-00017m-R8 for emacs-orgmode@gnu.org; Thu, 09 Sep 2010 13:16:42 -0400 Received: by mail-ew0-f41.google.com with SMTP id 28so1264940ewy.0 for ; Thu, 09 Sep 2010 10:16:42 -0700 (PDT) In-Reply-To: <4C890EBE.3080906@ccbr.umn.edu> (Erik Iverson's message of "Thu, 09 Sep 2010 11:43:42 -0500") 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: Erik Iverson Cc: emacs-orgmode@gnu.org, Richard Riley Erik Iverson writes: > Eric Schulte wrote: >> I'd think adding an ":exports none" header argument should be >> sufficient. >>=20 > > 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 >>=20 >> Richard Riley writes: >>=20 >>> 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 >>=20 >> _______________________________________________ >> 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 > Thanks fellas. --=20 =E2=98=98 http://www.shamrockirishbar.com, http://www.richardriley.net "Learning French is trivial: the word for horse is 'cheval' and everything follows thusly."