* :results raw for html export problem
@ 2017-01-30 20:12 Lawrence Bottorff
2017-01-31 12:32 ` Nicolas Goaziou
0 siblings, 1 reply; 2+ messages in thread
From: Lawrence Bottorff @ 2017-01-30 20:12 UTC (permalink / raw)
To: emacs-orgmode Mailinglist
[-- Attachment #1: Type: text/plain, Size: 1071 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 1604 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: :results raw for html export problem
2017-01-30 20:12 :results raw for html export problem Lawrence Bottorff
@ 2017-01-31 12:32 ` Nicolas Goaziou
0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2017-01-31 12:32 UTC (permalink / raw)
To: Lawrence Bottorff; +Cc: emacs-orgmode Mailinglist
Hello,
Lawrence Bottorff <borgauf@gmail.com> writes:
> Here's some Lisp in an org file that I export to html
>
> #+begin_src lisp :exports both :results raw
You shouldn't use ":exports both" and ":results raw" together.
With :results raw, Org has no possible way to tell whether the results
of the code block are already inserted in the document or not. Since you
request ":exports both", it always re-generates them upon exporting.
You may want to use ":exports code" and insert results manually in the
buffer.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-01-31 12:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-30 20:12 :results raw for html export problem Lawrence Bottorff
2017-01-31 12:32 ` Nicolas Goaziou
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).