From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: HTML :exports both problem Date: Mon, 19 Nov 2018 15:51:42 +0000 Message-ID: <87lg5pdq0h.fsf@gmail.com> References: <87ftvx5sw3.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42844) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gOlq2-0005ow-06 for emacs-orgmode@gnu.org; Mon, 19 Nov 2018 10:51:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gOlpx-0003EB-Lw for emacs-orgmode@gnu.org; Mon, 19 Nov 2018 10:51:49 -0500 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]:33657) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gOlpx-0003De-Eo for emacs-orgmode@gnu.org; Mon, 19 Nov 2018 10:51:45 -0500 Received: by mail-wr1-x434.google.com with SMTP id u9-v6so32600175wrr.0 for ; Mon, 19 Nov 2018 07:51:45 -0800 (PST) In-Reply-To: (Lawrence Bottorff's message of "Mon, 19 Nov 2018 09:02:37 -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" To: Lawrence Bottorff Cc: emacs-orgmode Mailinglist On Monday, 19 Nov 2018 at 09:02, Lawrence Bottorff wrote: > That did the trick. Great! > Though I'm wondering why the #+name: would cause such craziness. Probably because org tries to place the result of the src block after the associated results line if it is a named src block. With no name, I imagine it looks for a results block with no name as well. If the name statement is not used, the results come immediately after the src block. > . . Also, would anyone know why > > #+begin_src lisp :results output :exports both > (dotimes (x 20) > (dotimes (y 20) > (format t "~3d " (* (1+ x) (1+ y)))) > (format t "~%")) > #+end_src > > > produces > > #+RESULTS: > > #+begin_example [...] > #+end_example > > which is great. How did it know to sandwich the output between > #+begin_example/#+end_example, thereby preserving the linefeeds? That's > amazing. Is there a way to toggle that behavior? By default, "output" is placed in the buffer as an example. If less than a certain number of lines (10?), each line is prefixed with ":". If there are more lines, they are placed in the example block, as you have seen. The manual doesn't seem to say this however. -- Eric S Fraga via Emacs 27.0.50, Org release_9.1.14-1035-gfeb442