emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* HTML :exports both problem
@ 2018-11-19  5:55 Lawrence Bottorff
  2018-11-19  9:16 ` Eric S Fraga
  0 siblings, 1 reply; 5+ messages in thread
From: Lawrence Bottorff @ 2018-11-19  5:55 UTC (permalink / raw)
  To: emacs-orgmode Mailinglist

[-- Attachment #1: Type: text/plain, Size: 754 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 1298 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-11-19 16:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-19  5:55 HTML :exports both problem Lawrence Bottorff
2018-11-19  9:16 ` Eric S Fraga
2018-11-19 15:02   ` Lawrence Bottorff
2018-11-19 15:51     ` Eric S Fraga
2018-11-19 16:16     ` Nick Dokos

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).