emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: tftorrey@tftorrey.com (T.F. Torrey)
To: emacs-orgmode@gnu.org
Subject: Bug: nil in HTML export output
Date: Thu, 29 Jan 2015 11:22:45 -0700	[thread overview]
Message-ID: <87sieto39m.fsf@jack.tftorrey.com> (raw)

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	other threads:[~2015-01-29 18:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-29 18:22 T.F. Torrey [this message]
2015-01-29 23:33 ` Bug: nil in HTML export output Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sieto39m.fsf@jack.tftorrey.com \
    --to=tftorrey@tftorrey.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).