From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: Re: Bug in export of call lines Date: Tue, 11 Mar 2014 20:00:05 -1000 Message-ID: References: <87ha768d12.fsf@gmail.com> <87k3c2vts2.fsf@gmail.com> <87txb4n342.fsf@gmail.com> <8738iokoxy.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39963) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNcDJ-0006LI-BF for emacs-orgmode@gnu.org; Wed, 12 Mar 2014 02:00:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WNcDB-0008Ca-R0 for emacs-orgmode@gnu.org; Wed, 12 Mar 2014 02:00:25 -0400 Received: from oproxy6-pub.mail.unifiedlayer.com ([67.222.54.6]:53459) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1WNcDB-0008Bz-KD for emacs-orgmode@gnu.org; Wed, 12 Mar 2014 02:00:17 -0400 In-Reply-To: <8738iokoxy.fsf@gmail.com> (Eric Schulte's message of "Tue, 11 Mar 2014 19:40:27 -0600") 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: Eric Schulte Cc: Org-mode , Nicolas Goaziou Eric Schulte writes: > I think it is allowable for raw results to include newlines. After if R > returns a newline, the purpose of raw results is specifically to *not* > change the result. I believe the best approach is to customize the > inline results wrap as above, and then use non-raw processed results > when inline results without newlines are desired. > > Does this sound reasonable? I'm able to export my document correctly by removing :results raw from the R source code blocks. I can control wrapping of the results by making the calls :results raw, which removes the wrap. I don't see any change in newline behavior by changing org-babel-inline-result-wrap. Unlike your shell block, I don't get an extraneous newline. I only see unexpected behavior with R source code blocks when :results raw is set at the source code block. The following tables summarize what I'm seeing. * Tables of results :noexport: With "%s", modified value of org-babel-inline-result-wrap #+name: R-results | | call raw | call not raw | |----------------+------------+----------------------| | source raw | newline | verbatim and newline | | source not raw | no newline | no newline | #+name sh-results | | call raw | call not raw | |----------------+------------+--------------| | source raw | no newline | no newline | | source not raw | no newline | no newline | With "=%s=", the default value of org-babel-inline-result-wrap #+name: R-results-default | | call raw | call not raw | |----------------+------------+---------------------------------| | source raw | newline | verbatim and newline, no texttt | | source not raw | no newline | no newline, texttt | #+name sh-results-default | | call raw | call not raw | |----------------+------------+--------------------| | source raw | no newline | no newline, texttt | | source not raw | no newline | no newline, texttt | I'll dig deeper tomorrow to see why my shell source code blocks don't behave as yours do. In any case, my document exports again. Thanks, Tom -- T.S. Dye & Colleagues, Archaeologists 735 Bishop St, Suite 315, Honolulu, HI 96813 Tel: 808-529-0866, Fax: 808-529-0884 http://www.tsdye.com