From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: Babel: the disappearing hline Date: Mon, 11 Nov 2013 09:19:51 -0700 Message-ID: <87y54uhpw8.fsf@gmail.com> References: <877gcfhuq0.fsf@syk.fi> <8738n3t2ez.fsf@gmail.com> <87fvr3nfcm.fsf@syk.fi> <87wqkfrm3v.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59200) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VfuE6-0000si-IB for emacs-orgmode@gnu.org; Mon, 11 Nov 2013 11:20:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VfuE1-00030m-Ux for emacs-orgmode@gnu.org; Mon, 11 Nov 2013 11:20:34 -0500 Received: from mail-pd0-x22d.google.com ([2607:f8b0:400e:c02::22d]:60365) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VfuE1-00030X-DH for emacs-orgmode@gnu.org; Mon, 11 Nov 2013 11:20:29 -0500 Received: by mail-pd0-f173.google.com with SMTP id x10so99792pdj.4 for ; Mon, 11 Nov 2013 08:20:28 -0800 (PST) In-Reply-To: <87wqkfrm3v.fsf@gmail.com> (Thorsten Jolitz's message of "Mon, 11 Nov 2013 16:31:32 +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: Thorsten Jolitz Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Thorsten Jolitz writes: > Jarmo Hurri writes: > >>>> While taking my first long tour in the land of Babel, I bumped into a >>>> minor hline issue. Can someone tell me why the hline has disappeared >>>> from the second table? >>> >>> Because you use CALL without arguments and argument :hlines defaults >>> to 'no'? >> >> Ok, but why is there then a hline in the raw output in table-three? >> Furthermore, setting hlines to yes makes no difference: > > * test > #+NAME: table-one > #+BEGIN_SRC emacs-lisp > (list '(a) '(b) 'hline '(c)) > #+END_SRC > > #+results: table-one > | a | > | b | > |---| > | c | > > > #+NAME: table-two > #+CALL: table-one[:hlines yes]() > #+results: table-two > | a | > | b | > | c | > > but > > #+begin_src emacs-lisp :var table=table-one :hlines yes > table > #+end_src > > #+results: > | a | > | b | > |---| > | c | > > seems to be a problem with #+CALL then ... The ":hlines yes" header argument must be set on the call line itself. See (info "(org)Evaluating code blocks"). --=-=-= Content-Type: text/x-org Content-Disposition: inline; filename=call.org * test #+NAME: table-one #+BEGIN_SRC emacs-lisp (list '(a) '(b) 'hline '(c)) #+END_SRC #+results: table-one | a | | b | |---| | c | #+NAME: table-two-without #+CALL: table-one() #+results: table-two-without | a | | b | | c | #+NAME: table-two-with #+CALL: table-one() :hlines yes #+results: table-two-with | a | | b | |---| | c | --=-=-= Content-Type: text/plain -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D --=-=-=--