From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fabrice Popineau Subject: Spurious elements in HTML export Date: Thu, 15 May 2014 10:42:15 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=90e6ba1efb9656a22a04f96c479d Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47149) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkrFO-0003SI-40 for emacs-orgmode@gnu.org; Thu, 15 May 2014 04:42:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WkrFM-0007lP-IP for emacs-orgmode@gnu.org; Thu, 15 May 2014 04:42:38 -0400 Received: from mail-ie0-x232.google.com ([2607:f8b0:4001:c03::232]:35802) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkrFM-0007l8-CP for emacs-orgmode@gnu.org; Thu, 15 May 2014 04:42:36 -0400 Received: by mail-ie0-f178.google.com with SMTP id rd18so700580iec.23 for ; Thu, 15 May 2014 01:42:35 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "emacs-orgmode@gnu.org" --90e6ba1efb9656a22a04f96c479d Content-Type: text/plain; charset=UTF-8 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:

Table of Contents

1 Subsection 1

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

2 Subsection 2

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

My questions: - is this what is expected ? - why those 3

? - why are they surrounded by those divs ? I don't see the point in generating those empty

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 --90e6ba1efb9656a22a04f96c479d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

Using the HTML exporter, I easily g= et spurious empty elements.
Example:

Org= -mode:

* Section
[2014-05-15 jeu. 1= 0: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 f= oo 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=3D"table-of-contents">
<= h2>Table of Contents</h2>
<div id=3D"text-table-of-contents">
<ul&g= t;
<li><a href=3D"#sec-1">1. Subsection 1&l= t;/a></li>
<li><a href=3D"#sec-2">= 2. Subsection 2</a></li>
</ul>
</div>
</div>
<div class=3D"figure">
<p>
</p>
</div>

<div i= d=3D"outline-container-sec-1" class=3D"outline-2">
<h2 id=3D"sec-1"><span class=3D"section-number= -2">1</span> Subsection 1</h2>
<div class= =3D"outline-text-2" id=3D"text-1">

<div class=3D"figure">
<p>
</p= >
</div>

<p>
Fo= o 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=3D"outline-container-sec-2" class=3D"= outline-2">
<h2 id=3D"sec-2"><span cla= ss=3D"section-number-2">2</span> Subsection 2</h2>=
<div class=3D"outline-text-2" id=3D"text-2">=

<div class=3D"figure">
= <p>
</p>
</div>

<= 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 f= oo 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 surrounde= d by those divs ?

I don't see the point in gen= erating those empty <p></p> elements, and even less in wrapping= them with figure class.

If I remove the empty lines following the date/time sta= mps, then =C2=A0I get only the first of those empty blocks.
Howev= er, 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 La= TeX exporter exports the date stamp. The HTML exporter doesn't.

Thanks for clarifications on this topic.

=
--
Fabrice
--90e6ba1efb9656a22a04f96c479d--