From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xavier Garrido Subject: Re: Insert a line separator in table results Date: Thu, 17 Jul 2014 00:13:39 +0200 Message-ID: <53C6F913.90307@gmail.com> References: <53C6CD37.1030602@gmail.com> <87fvi1azej.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39570) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X7XSJ-0005r7-Ae for emacs-orgmode@gnu.org; Wed, 16 Jul 2014 18:13:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X7XSA-0003qk-8r for emacs-orgmode@gnu.org; Wed, 16 Jul 2014 18:13:43 -0400 Received: from mail-wg0-x22e.google.com ([2a00:1450:400c:c00::22e]:56061) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X7XSA-0003qc-23 for emacs-orgmode@gnu.org; Wed, 16 Jul 2014 18:13:34 -0400 Received: by mail-wg0-f46.google.com with SMTP id m15so1575152wgh.5 for ; Wed, 16 Jul 2014 15:13:33 -0700 (PDT) In-Reply-To: <87fvi1azej.fsf@gmail.com> 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: Thorsten Jolitz , emacs-orgmode@gnu.org Dear Thorsten, I would like to be able to do it with =python=... Maybe it is only possible with =emacs-lisp= as you suggest. Xavier Le 16/07/2014 21:15, Thorsten Jolitz a écrit : > Xavier Garrido writes: > >> Dear orgers, >> >> I would like to programmatically insert a line separator when generating >> a table result. Below is a minimal working example with =python= src block >> >> #+BEGIN_SRC python >> x = [("label 1", "label 2", "label 3"), ("-", "-", "-")] >> x.append((4, 5, 6)) >> x.append((7, 8, 9)) >> return (x) >> #+END_SRC >> >> #+RESULTS: >> | label 1 | label 2 | label 3 | >> | - | - | - | >> | 4 | 5 | 6 | >> | 7 | 8 | 9 | >> >> Is there any possibility to interpret dash as line separator ? > > #+begin_src emacs-lisp :results table > (list '(1 2 3) 'hline '(a b c) '(d e f) 'hline '(4 5 6)) > #+end_src > > #+results: > | 1 | 2 | 3 | > |---+---+---| > | a | b | c | > | d | e | f | > |---+---+---| > | 4 | 5 | 6 | > >