From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: Re: Code block evaluation export bug ? Date: Thu, 20 Oct 2011 15:57:20 -1000 Message-ID: References: <20111019162146.GA24998@client199-154.wlan.hu-berlin.de> <81fwip3q0k.fsf@gmail.com> <20111019201437.GA28039@kenny.fritz.box> <7108.1319059342@alphaville.americas.hpqcorp.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:43655) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RH4Md-0004nx-RM for emacs-orgmode@gnu.org; Thu, 20 Oct 2011 21:57:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RH4Mc-00005t-Ie for emacs-orgmode@gnu.org; Thu, 20 Oct 2011 21:57:39 -0400 Received: from lo.gmane.org ([80.91.229.12]:56275) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RH4Mc-00005o-55 for emacs-orgmode@gnu.org; Thu, 20 Oct 2011 21:57:38 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RH4MX-0001Xl-G5 for emacs-orgmode@gnu.org; Fri, 21 Oct 2011 03:57:33 +0200 Received: from 72.253.144.27 ([72.253.144.27]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 21 Oct 2011 03:57:33 +0200 Received: from tsd by 72.253.144.27 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 21 Oct 2011 03:57: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 Nick Dokos writes: > While testing my response to Viktor's question, I ran into a problem. > I used a test file that is slightly modified from a previous post of Tom Dye's: > > * R tables > > #+TBLNAME: tbl-1 > | column1 | column2 | > |---------+---------| > | 45 | 34 | > | 77 | 56 | > > #+tblname: tbl-2 > | col1 | col2 | > |------+------| > | a | b | > | c | d | > > #+tblname: tbl-3 > | c1 | c2 | > |----+----| > | A | B | > | C | D | > > #+BEGIN_SRC R :var x=tbl-1 :var y=tbl-2 :var z=tbl-3 :colnames yes :exports both :results value > z > #+END_SRC > > > > Evaluating the code block correctly produces the result > > ,---- > | > | #+results: > | | c1 | c2 | > | |----+----| > | | A | B | > | | C | D | > `---- > > but exporting (to ascii, PDF, HTML or ODT) chops off the first row of > the result. For example, here > is the ascii: > > ,---- > | > | c1 c2 > | ----+---- > | C D > `---- > > HTML produces: > > ,---- > |
> |   c1 c2
> | 1  C  D
> | 
> `---- > > Latex: > > ,---- > | \begin{center} > | \begin{tabular}{ll} > | c1 & c2 \\ > | \hline > | C & D \\ > | \end{tabular} > | \end{center} > `---- > > ODT: > > ,---- > | > | > | > | > | > | | table:style-name="OrgTblCellT"> | text:style-name="OrgTableHeadingLeft">c1 > | > | | text:style-name="OrgTableHeadingLeft">c2 > | > | > | > | > | > | | table:style-name="OrgTblCellTB"> | text:style-name="OrgTableContentsLeft">C > | > | | text:style-name="OrgTableContentsLeft">D > | > | > | > | > | > `---- > > Versions: > GNU Emacs 24.0.50.2 (x86_64-unknown-linux-gnu, GTK+ Version 2.22.0) of > 2011-09-13 > Org-mode version 7.7 (release_7.7.396.gfaaa) > > Nick > > Aloha Nick, I see the same behavior. Tom -- Thomas S. Dye http://www.tsdye.com