From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lawrence Bottorff Subject: HTML :exports both problem Date: Sun, 18 Nov 2018 23:55:38 -0600 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000004282d3057afe2bdb" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38232) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gOcXI-0005IR-BN for emacs-orgmode@gnu.org; Mon, 19 Nov 2018 00:55:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gOcXH-0005J8-10 for emacs-orgmode@gnu.org; Mon, 19 Nov 2018 00:55:52 -0500 Received: from mail-oi1-x232.google.com ([2607:f8b0:4864:20::232]:37724) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gOcXG-0005I3-Q1 for emacs-orgmode@gnu.org; Mon, 19 Nov 2018 00:55:50 -0500 Received: by mail-oi1-x232.google.com with SMTP id y23so15220429oia.4 for ; Sun, 18 Nov 2018 21:55:50 -0800 (PST) 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 Mailinglist --0000000000004282d3057afe2bdb Content-Type: text/plain; charset="UTF-8" Try this at home: #+begin_src lisp :results output :exports both (dotimes (i 4) (format t "~3d " i)) #+end_src #+RESULTS: : 0 1 2 3 #+name: #+begin_src lisp :exports both (defun multabl () (dotimes (x 20) (dotimes (y 20) (format t "~3d " (* (1+ x) (1+ y)))) (format t "~%"))) #+end_src #+name: #+begin_src lisp :exports both (defun dt-test () (let ((y 0)) (dotimes (x 5 y) (format t "~3d " y)))) #+end_src What I get when I export to HTML is bizarre, i.e., the results of the first code block don't appear, rather, the *name* of the last function! If I put the last two blocks between #+BEGIN_COMMENT and #+END_COMMENT, it behaves normally and shows the results. Am I missing something? LB --0000000000004282d3057afe2bdb Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Tr= y this at home:

#+begin_src lisp :results out= put :exports both
=C2=A0 (dotimes (i 4)
=C2=A0 =C2=A0 (= format t "~3d " i))
#+end_src

= #+RESULTS:
:=C2=A0 =C2=A00=C2=A0 =C2=A01=C2=A0 =C2=A02=C2=A0 =C2= =A03=C2=A0

#+name:
#+begin_src lisp :exp= orts both
=C2=A0 (defun multabl ()
=C2=A0 =C2=A0 (dotim= es (x 20)
=C2=A0 =C2=A0 =C2=A0 (dotimes (y 20)
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 (format t "~3d " (* (1+ x) (1+ y))))
=C2=A0 =C2=A0 =C2=A0 (format t "~%")))
#+end_src


#+name:
#+begin_src lisp :ex= ports both
=C2=A0 (defun dt-test ()
=C2=A0 =C2=A0 (let = ((y 0))
=C2=A0 =C2=A0 (dotimes (x 5 y)
=C2=A0 =C2=A0 = =C2=A0 (format t "~3d " y))))
#+end_src

What I get when I export to HTML is bizarre, i.e., the resu= lts of the first code block don't appear, rather, the name of th= e last function! If I put the last two blocks between=C2=A0#+BEGIN_COMMENT = and=C2=A0#+END_COMMENT, it behaves normally and shows the results.

Am I missing something?

LB
<= /div>
--0000000000004282d3057afe2bdb--