From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: [Babel] Blank line preceeds tangled data Date: Fri, 26 Aug 2011 06:20:44 -0400 Message-ID: <87aaaw324j.fsf@norang.ca> References: <87ippl2cse.fsf@norang.ca> <5525.1314333321@alphaville.dokosmarshall.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:37474) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QwtWr-0007bl-Lj for emacs-orgmode@gnu.org; Fri, 26 Aug 2011 06:20:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QwtWq-0004RA-4h for emacs-orgmode@gnu.org; Fri, 26 Aug 2011 06:20:49 -0400 Received: from mho-04-ewr.mailhop.org ([204.13.248.74]:19146 helo=mho-02-ewr.mailhop.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QwtWp-0004R1-V9 for emacs-orgmode@gnu.org; Fri, 26 Aug 2011 06:20:48 -0400 In-Reply-To: (Rainer M. Krug's message of "Fri, 26 Aug 2011 11:17:41 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Rainer M Krug Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org Rainer M Krug writes: > On Fri, Aug 26, 2011 at 6:35 AM, Nick Dokos > wrote: > > Bernt Hansen wrote: >=20=20=20=20 > > Hi, > > > > When I tangle some file such as > > > > #+begin_src sh :tangle x.sh > > =C2=A0 #!/bin/sh > > =C2=A0 echo done > > #+end_src > > > > I get the following output which includes a blank line up > front. > > > > ,----[ x.sh ] > > | > > | #!/bin/sh > > | echo done > > `---- > > > > Doesn't this break the shebang line on unix? =C2=A0I don't think the > leading > > blank line should be in the tangled output. > > >=20=20=20=20 > Not sure why it's there (I'm sure Eric S. will enlighten us) > but you can get rid of it with :padline no. > > > and there is also the :shebang parameter to specify the shebang, so > > > #+begin_src sh :tangle x.sh :shebang #!bin/sh :padline no > =C2=A0echo done > #+end_src > > will give you the expected file x.sh. No idea why it is not enabled > in your config. Thanks Rainer and Nick! I didn't know about either of these babel options. The :shebang line works for me. Regards, Bernt