all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Bug: nil in HTML export output
@ 2015-01-29 18:22 T.F. Torrey
  2015-01-29 23:33 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: T.F. Torrey @ 2015-01-29 18:22 UTC (permalink / raw)
  To: emacs-orgmode

Hello,

With the latest code from the git repo, the HTML export of items having
drawers but no top-level content puts a stray "nil" in the
"outline-text-" div.

Minimal document to show bug:

#+BEGIN_SRC org
,* Item without drawers does not make nil

,* Item with drawer and top-level content does not make nil
  :PROPERTIES:
  :CUSTOM_ID: item_1
  :END:

Here is top-level content.

,* Item with drawer but no top-level content makes nil
  :PROPERTIES:
  :CUSTOM_ID: item_1
  :END:

#+END_SRC

Reproduced starting Emacs with emacs -q, loading Org from the latest pull from git,
then exporting the test document using the export dispatcher.

Snipped output:

#+BEGIN_SRC html
<div id="outline-container-sec-1" class="outline-2">
<h2 id="sec-1"><span class="section-number-2">1</span> Item without drawers does not make nil</h2>
</div>

<div id="outline-container-item_1" class="outline-2">
<h2 id="item_1"><a id="sec-2"></a><span class="section-number-2">2</span> Item with property drawer and top-level content does not make nil</h2>
<div class="outline-text-2" id="text-item_1">
<p>
Here is top-level content.
</p>
</div>
</div>

<div id="outline-container-item_1" class="outline-2">
<h2 id="item_1"><a id="sec-3"></a><span class="section-number-2">3</span> Item with property drawer but no top-level content makes nil</h2>
<div class="outline-text-2" id="text-item_1">
nil</div>
</div>
#+END_SRC

Emacs  : GNU Emacs 24.4.1 (i586-pc-linux-gnu, GTK+ Version 3.14.5)
 of 2014-12-19 on brahms, modified by Debian
Package: Org-mode version 8.3beta (release_8.3beta-764-ga1f540 @ /home/tftorrey/T/org-mode/lisp/)

I haven't chased down the cause yet.

Terry
--
T.F. Torrey

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

end of thread, other threads:[~2015-01-29 23:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-29 18:22 Bug: nil in HTML export output T.F. Torrey
2015-01-29 23:33 ` Nicolas Goaziou

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.