emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Re: org-babel and empty code blocks : publishing html


From: Eric Schulte
Subject: Re: [Orgmode] Re: org-babel and empty code blocks : publishing html
Date: Fri, 10 Sep 2010 12:37:02 -0600
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Hi Richard,

Richard Riley <address@hidden> writes:

[...]
>
> Hmm, I think maybe I am getting confused here then. Maybe its better if
> I show an example:-
>
> ,----
> | **** TODO weather in agenda
> |      SCHEDULED: <2010-09-10 Fri>
> | :PROPERTIES:
> |  :DateCreated: <2010-09-09 Thu 15:07>
> | :END:
> | 
> | test me one two 3
> | 
> | #+begin_src emacs-lisp
> | #+end_src
> | 
> | More test
> `----
>
> Note the empty src block. When I export to html I dont want this code
> evaled (it isnt when there IS elisp in there - I just see the code as
> nicely HTML'd) and I dont want a nil in the output when its empty.
>

When I export the above to html, I get the following...
--8<---------------cut here---------------start------------->8---
<p>
test me one two 3
</p>

<p>
More test
</p></li>
--8<---------------cut here---------------end--------------->8---

In my case the code block is not evaluated.  Do you have any buffer wide
header arguments?  What does the following print for you?

#+begin_src emacs-lisp
  (mapcar
   (lambda (pair)
     (list (car pair) (cdr pair)))
   params)
#+end_src

for me it returns the following
#+results:
| :cache    | no      |
| :colnames | no      |
| :comments |         |
| :exports  | code    |
| :hlines   | yes     |
| :noweb    | no      |
| :results  | replace |
| :session  | none    |
| :shebang  |         |
| :tangle   | no      |

Best -- Eric

>
> cheers,
>
> r.
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> address@hidden
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode



reply via email to

[Prev in Thread] Current Thread [Next in Thread]