From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lawrence Bottorff Subject: :results raw for html export problem Date: Mon, 30 Jan 2017 15:12:26 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=94eb2c1305722ffd340547556f9e Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51942) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cYIJR-0003CQ-0R for emacs-orgmode@gnu.org; Mon, 30 Jan 2017 15:12:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cYIJP-0004A4-Ur for emacs-orgmode@gnu.org; Mon, 30 Jan 2017 15:12:29 -0500 Received: from mail-oi0-x22c.google.com ([2607:f8b0:4003:c06::22c]:35089) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cYIJP-00049V-Pj for emacs-orgmode@gnu.org; Mon, 30 Jan 2017 15:12:27 -0500 Received: by mail-oi0-x22c.google.com with SMTP id j15so201935958oih.2 for ; Mon, 30 Jan 2017 12:12:27 -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 --94eb2c1305722ffd340547556f9e Content-Type: text/plain; charset=UTF-8 Here's some Lisp in an org file that I export to html #+begin_src lisp :exports both :results raw (write (setf my-array (make-array '(10)))) (terpri) ; goo.gl/lCcdDU / Function TERPRI, FRESH-LINE (setf (aref my-array 0) 25) (setf (aref my-array 1) 23) (setf (aref my-array 2) 45) (setf (aref my-array 3) 10) (setf (aref my-array 4) 20) (setf (aref my-array 5) 17) (setf (aref my-array 6) 25) (setf (aref my-array 7) 19) (setf (aref my-array 8) 67) (setf (aref my-array 9) 30) (write my-array) #+end_src #+RESULTS: #(25 23 45 10 20 17 25 19 67 30) . . . but the results look munged after an html export: #(25 23 45 10 20 17 25 19 67 30) #(25 23 45 10 20 17 25 19 67 30) . . . not the mono-space font and the answer is repeated. However, this code behaves well: #+begin_src lisp :exports both (setf x (make-array '(3 3) :initial-contents '((0 1 2 ) (3 4 5) (6 7 8))) ) (write x) #+end_src #+RESULTS: : #2A((0 1 2) (3 4 5) (6 7 8)) and exports well. Please advise. I'm on latest, greatest everything (25.1.1; 9.0.4;U16.10; SBCL1.3.14; fresh quicklisp slime). LB --94eb2c1305722ffd340547556f9e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Here's some Lisp in an org file that I export to = html

#+begin_src lisp :exports both :results raw
(write (setf my-array (make-array '(10))))
(terpri) = ; goo.gl/lCcdDU / Function TERPRI, FRE= SH-LINE
(setf (aref my-array 0) 25)
(setf (aref my-arra= y 1) 23)
(setf (aref my-array 2) 45)
(setf (aref my-arr= ay 3) 10)
(setf (aref my-array 4) 20)
(setf (aref my-ar= ray 5) 17)
(setf (aref my-array 6) 25)
(setf (aref my-a= rray 7) 19)
(setf (aref my-array 8) 67)
(setf (aref my-= array 9) 30)
(write my-array)
#+end_src

<= /div>
#+RESULTS:
#(25 23 45 10 20 17 25 19 67 30)
<= br>
. . . but the results look munged after an html export:
=

#(25 23 45 10 20 17 25 19 67 30) #(25 23 45 10 20 17 25= 19 67 30)

. . . not the mono-space font and t= he answer is repeated. However, this code behaves well:

#+begin_src lisp :exports both
(setf x (make-array = 9;(3 3)=C2=A0
=C2=A0 =C2=A0:initial-contents '((0 1 2 ) (3 4 = 5) (6 7 8)))
)
(write x)
#+end_src
=
#+RESULTS:
: #2A((0 1 2) (3 4 5) (6 7 8))

and exports well. Please advise. I'm on latest, = greatest everything (25.1.1; 9.0.4;U16.10; SBCL1.3.14; fresh quicklisp slim= e).

LB
--94eb2c1305722ffd340547556f9e--