From: Fabrice Popineau <fabrice.popineau@gmail.com>
To: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Spurious elements in HTML export
Date: Thu, 15 May 2014 10:42:15 +0200 [thread overview]
Message-ID: <CAFgFV9OpfQq-FATW-N5t2qLz_q4b+tO-jXcAvFSAo1yS6QRfAg@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2615 bytes --]
Hi,
Using the HTML exporter, I easily get spurious empty elements.
Example:
Org-mode:
* Section
[2014-05-15 jeu. 10:29]
** Subsection 1
[2014-05-15 jeu. 10:28]
Foo bar foo bar foo bar foo bar foo bar foo bar foo bar foo bar foo
bar foo bar foo bar foo bar foo bar foo bar foo bar foo bar foo bar
foo bar foo bar foo bar foo bar foo bar foo bar foo bar foo bar foo
bar foo bar foo bar foo bar foo bar foo bar foo bar foo bar
** Subsection 2
[2014-05-15 jeu. 10:29]
Foo bar foo bar foo bar foo bar foo bar foo bar foo bar foo bar foo
bar foo bar foo bar foo bar foo bar foo bar foo bar foo bar foo bar
foo bar foo bar foo bar foo bar foo bar foo bar foo bar foo bar foo
bar foo bar foo bar foo bar foo bar foo bar foo bar foo bar
After C-c C-e C-s C-b h H, HTML:
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#sec-1">1. Subsection 1</a></li>
<li><a href="#sec-2">2. Subsection 2</a></li>
</ul>
</div>
</div>
<div class="figure">
<p>
</p>
</div>
<div id="outline-container-sec-1" class="outline-2">
<h2 id="sec-1"><span class="section-number-2">1</span> Subsection 1</h2>
<div class="outline-text-2" id="text-1">
<div class="figure">
<p>
</p>
</div>
<p>
Foo bar foo bar foo bar foo bar foo bar foo bar foo bar foo bar foo
bar foo bar foo bar foo bar foo bar foo bar foo bar foo bar foo bar
foo bar foo bar foo bar foo bar foo bar foo bar foo bar foo bar foo
bar foo bar foo bar foo bar foo bar foo bar foo bar foo bar
</p>
</div>
</div>
<div id="outline-container-sec-2" class="outline-2">
<h2 id="sec-2"><span class="section-number-2">2</span> Subsection 2</h2>
<div class="outline-text-2" id="text-2">
<div class="figure">
<p>
</p>
</div>
<p>
Foo bar foo bar foo bar foo bar foo bar foo bar foo bar foo bar foo
bar foo bar foo bar foo bar foo bar foo bar foo bar foo bar foo bar
foo bar foo bar foo bar foo bar foo bar foo bar foo bar foo bar foo
bar foo bar foo bar foo bar foo bar foo bar foo bar foo bar
</p>
</div>
</div>
My questions:
- is this what is expected ?
- why those 3 <p></p> ?
- why are they surrounded by those divs ?
I don't see the point in generating those empty <p></p> elements, and even
less in wrapping them with figure class.
If I remove the empty lines following the date/time stamps, then I get
only the first of those empty blocks.
However, doing this, I trigger what i think is inconsistent between the
HTML and the LaTeX exporter: if there is no empty line after the date
stamp, the LaTeX exporter exports the date stamp. The HTML exporter doesn't.
Thanks for clarifications on this topic.
--
Fabrice
[-- Attachment #2: Type: text/html, Size: 4233 bytes --]
next reply other threads:[~2014-05-15 8:42 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-15 8:42 Fabrice Popineau [this message]
2014-05-15 8:55 ` Spurious elements in HTML export Bastien
2014-05-15 9:20 ` Fabrice Popineau
2014-05-15 9:26 ` Fabrice Popineau
2014-05-15 9:45 ` Bastien
2014-05-15 11:46 ` Nicolas Goaziou
2014-05-15 12:37 ` Fabrice Popineau
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=CAFgFV9OpfQq-FATW-N5t2qLz_q4b+tO-jXcAvFSAo1yS6QRfAg@mail.gmail.com \
--to=fabrice.popineau@gmail.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).