From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Re: Insert a line separator in table results Date: Wed, 16 Jul 2014 21:15:16 +0200 Message-ID: <87fvi1azej.fsf@gmail.com> References: <53C6CD37.1030602@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59324) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X7Ug6-0007pI-8L for emacs-orgmode@gnu.org; Wed, 16 Jul 2014 15:15:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X7Ufy-0000Wp-OK for emacs-orgmode@gnu.org; Wed, 16 Jul 2014 15:15:46 -0400 Received: from plane.gmane.org ([80.91.229.3]:37678) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X7Ufy-0000Wl-GL for emacs-orgmode@gnu.org; Wed, 16 Jul 2014 15:15:38 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1X7Uft-0003xn-5o for emacs-orgmode@gnu.org; Wed, 16 Jul 2014 21:15:33 +0200 Received: from g231233164.adsl.alicedsl.de ([92.231.233.164]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 16 Jul 2014 21:15:33 +0200 Received: from tjolitz by g231233164.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 16 Jul 2014 21:15:33 +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: emacs-orgmode@gnu.org 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 | -- cheers, Thorsten