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

Reply via email to