Łukasz Stelmach <lukasz.stelm...@iem.pw.edu.pl> 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 = 
> 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 Łukasz,

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 =
  @<<<<<< @|||||| @>>>>>>
  "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?


_______________________________________________
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

Reply via email to