From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jarmo Hurri Subject: Re: Babel: the disappearing hline Date: Mon, 11 Nov 2013 19:26:35 +0200 Message-ID: <87y54urgs4.fsf@syk.fi> References: <877gcfhuq0.fsf@syk.fi> <8738n3t2ez.fsf@gmail.com> <87fvr3nfcm.fsf@syk.fi> <87wqkfrm3v.fsf@gmail.com> <87y54uhpw8.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50237) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VfvGJ-000274-DK for emacs-orgmode@gnu.org; Mon, 11 Nov 2013 12:27:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VfvGC-0000kC-2p for emacs-orgmode@gnu.org; Mon, 11 Nov 2013 12:26:55 -0500 Received: from plane.gmane.org ([80.91.229.3]:52270) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VfvGB-0000k5-SQ for emacs-orgmode@gnu.org; Mon, 11 Nov 2013 12:26:48 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VfvGA-0007EX-5H for emacs-orgmode@gnu.org; Mon, 11 Nov 2013 18:26:46 +0100 Received: from cs78160219.pp.htv.fi ([62.78.160.219]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 11 Nov 2013 18:26:46 +0100 Received: from jarmo.hurri by cs78160219.pp.htv.fi with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 11 Nov 2013 18:26:46 +0100 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 Eric Schulte writes: > The ":hlines yes" header argument must be set on the call line itself. Thanks, that works! Since this works differently for org results and raw results, can you explain whether I understand this correctly: a ":hlines yes" at the end of the line is needed to keep hlines in the output of a #+CALL if the result is in org-mode, but a ":hlines yes" is not needed if the output is raw. In fact, a ":hlines no" keeps hlines in raw output; see a summarizing example below. >From the documentation I got the impression that if hlines are pruned, they are pruned from the _input_: "The :hlines argument to a code block accepts the values yes or no, with a default value of no. - no Strips horizontal lines from the input table." Jarmo # --------------------------------------------------------------- * hlines behaviour demo for org and raw output #+NAME: input-table #+BEGIN_SRC emacs-lisp (list '(a) '(b) 'hline '(c)) #+END_SRC #+RESULTS: input-table | a | | b | |---| | c | #+NAME: table-org-results #+CALL: input-table() :hlines yes #+RESULTS: table-org-results | a | | b | |---| | c | #+NAME: table-raw-results #+CALL: input-table[:results raw]() :hlines no #+RESULTS: table-raw-results : ((a) (b) hline (c)) # ---------------------------------------------------------------