From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: [Babel] Small problem with tangling Date: Wed, 13 Oct 2010 09:26:44 -0600 Message-ID: <87mxqinmff.fsf@gmail.com> References: <80mxqirxf1.fsf@mundaneum.com> 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=50210 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P63EV-0003cd-LT for emacs-orgmode@gnu.org; Wed, 13 Oct 2010 11:27:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P63EM-0002jm-PO for emacs-orgmode@gnu.org; Wed, 13 Oct 2010 11:27:03 -0400 Received: from mail-yw0-f41.google.com ([209.85.213.41]:43213) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P63EM-0002ji-M0 for emacs-orgmode@gnu.org; Wed, 13 Oct 2010 11:27:02 -0400 Received: by ywt2 with SMTP id 2so2952414ywt.0 for ; Wed, 13 Oct 2010 08:27:02 -0700 (PDT) In-Reply-To: <80mxqirxf1.fsf@mundaneum.com> (=?utf-8?Q?=22S=C3=A9bastien?= Vauban"'s message of "Wed, 13 Oct 2010 16:15:46 +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: =?utf-8?Q?S=C3=A9bastien?= Vauban Cc: emacs-orgmode@gnu.org The following inhibits the insertion of blank lines on tangling. (setq org-babel-tangle-pad-newline nil) Best -- Eric S=C3=A9bastien Vauban writes: > Hello, > > I just tried this: > > Creating the following =3D.reg=3D file: > > #+begin_src sh :tangle org-protocol-setup.reg > REGEDIT4 > > [HKEY_CLASSES_ROOT\org-protocol] > @=3D"URL:Org Protocol" > "URL Protocol"=3D"" > [HKEY_CLASSES_ROOT\org-protocol\shell] > [HKEY_CLASSES_ROOT\org-protocol\shell\open] > [HKEY_CLASSES_ROOT\org-protocol\shell\open\command] > @=3D"\"C:\\Programme\\Emacs\\emacs\\bin\\emacsclientw.exe\" \"%1\"" > #+end_src > > and double-click it. > > and tangled it. > > But, when clicking on the reg file, it fails... saying it is not a valid = reg > file. > > I've found the reason to be an empty first line that's always inserted at= the > beginning of the file. Removing it cures the problem. > > What should I do to get rid of that first *empty* line? > > Best regards, > Seb