From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Davison Subject: Re: [BUG] org-babel-perl and formats Date: Thu, 08 Apr 2010 11:50:06 -0400 Message-ID: <8739z6djv5.fsf@stats.ox.ac.uk> References: <874ojm7py8.fsf@kotik.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nztzm-0002Yb-Tu for emacs-orgmode@gnu.org; Thu, 08 Apr 2010 11:50:18 -0400 Received: from [140.186.70.92] (port=49213 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nztzk-0002X0-2R for emacs-orgmode@gnu.org; Thu, 08 Apr 2010 11:50:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nztze-0002ac-By for emacs-orgmode@gnu.org; Thu, 08 Apr 2010 11:50:15 -0400 Received: from markov.stats.ox.ac.uk ([163.1.210.1]:40829) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nztze-0002aL-4q for emacs-orgmode@gnu.org; Thu, 08 Apr 2010 11:50:10 -0400 In-Reply-To: <874ojm7py8.fsf@kotik.lan> (=?utf-8?Q?=22=C5=81ukasz?= Stelmach"'s message of "Thu, 08 Apr 2010 02:22:55 +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?=C5=81ukasz?= Stelmach Cc: emacs-orgmode@gnu.org =C5=81ukasz Stelmach writes: > Hello. > > I am not sure I will be able to spend some time on this so I'll share my > observation with you. org-babel-perl can't cope with perl formats, with > their endings to be precise. A format is defined by: > > format FORMAT_NAME =3D=20 > body of the format > . > > The problem is that formats *must* and with a single solitary dot or, to > be precise "\n.\n" sequence. org-babel-perl doesn't care about it and > puts "\t" befor the dot. Hi =C5=81ukasz, Could you post an example? I don't believe we insert tab characters. I've never used a perl format before, but I just tried it and it seemed to work OK with C-c C-c: --8<---------------cut here---------------start------------->8--- #+begin_src perl format STDOUT =3D @<<<<<< @|||||| @>>>>>> "left", "middle", "right" . write ; #+end_src #+results: : left middle right --8<---------------cut here---------------end--------------->8--- Incidentally, do you know the variable org-src-preserve-indentation? When I first read your email I thought that would be the answer. In fact it doesn't seem to be relevant, but I thought I would mention it anyway. Dan > > Are these indents really necessary in the text > that goes straight through IPC pipes of our OS of choice?