From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: HTML :exports both problem Date: Mon, 19 Nov 2018 11:16:20 -0500 Message-ID: <87va4tjb57.fsf@alphaville.usersys.redhat.com> References: <87ftvx5sw3.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51164) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gOmE3-0006Yk-Gh for emacs-orgmode@gnu.org; Mon, 19 Nov 2018 11:16:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gOmDy-0004p9-Ge for emacs-orgmode@gnu.org; Mon, 19 Nov 2018 11:16:39 -0500 Received: from [195.159.176.226] (port=48911 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gOmDy-0004nJ-9l for emacs-orgmode@gnu.org; Mon, 19 Nov 2018 11:16:34 -0500 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1gOmBn-0003zi-CS for emacs-orgmode@gnu.org; Mon, 19 Nov 2018 17:14:19 +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" To: emacs-orgmode@gnu.org Lawrence Bottorff writes: > That did the trick. Though I'm wondering why the #+name: would cause such craziness. . . 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 >   1   2   3   4   5   6   7   8   9  10  11  12  13  14  15  16  17  18  19  20  >   2   4   6   8  10  12  14  16  18  20  22  24  26  28  30  32  34  36  38  40  > ... > #+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? > I believe this is controlled by `org-babel-min-lines-for-block-output'. Help on this variable says: ,---- | org-babel-min-lines-for-block-output is a variable defined in ‘ob-core.el’. | Its value is 10 | | Documentation: | The minimum number of lines for block output. | If number of lines of output is equal to or exceeds this | value, the output is placed in a #+begin_example...#+end_example | block. Otherwise the output is marked as literal by inserting | colons at the starts of the lines. This variable only takes | effect if the :results output option is in effect. `---- -- Nick "There are only two hard problems in computer science: cache invalidation, naming things, and off-by-one errors." -Martin Fowler