From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fabrice Popineau Subject: Re: Spurious elements in HTML export Date: Thu, 15 May 2014 11:20:41 +0200 Message-ID: References: <87wqdnv2tc.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1133ba66c532d104f96cd00c Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35967) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wkrqb-0003Fb-Qa for emacs-orgmode@gnu.org; Thu, 15 May 2014 05:21:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WkrqX-0006qv-R2 for emacs-orgmode@gnu.org; Thu, 15 May 2014 05:21:05 -0400 In-Reply-To: <87wqdnv2tc.fsf@bzg.ath.cx> 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: Bastien Cc: "emacs-orgmode@gnu.org" --001a1133ba66c532d104f96cd00c Content-Type: text/plain; charset=UTF-8 2014-05-15 10:55 GMT+02:00 Bastien : > Hi Fabrice, > > Fabrice Popineau writes: > > > Using the HTML exporter, I easily get spurious empty elements. > > I can't reproduce this. Do you have a recipe with a minimal > configuration ? > > This is already good to know! I'll try to bisect my emacs config. Recipe : the sole org fragment from my message in an org buffer, and export the subtree in an html buffer with C-c C-e C-s C-b h H > Also mention your Org and Emacs version. > > Org: git latest (from today). Emacs 24.4 (trunk devel, under Windows, yeah I know ...). I suspect the problem might come from org-html-standalone-image-p (incorrectly finding an image for an empty paragraph) or even from org-string-nw-p. What org-string-nw-p should return on a string with the single EOL character? BTW, I wonder if org-html-standalone-image-p does actually what is documented. It is documented as returning non-nil in one of two cases: element is of type paragraph or of type link. But its code starts with: (and (eq (org-element-type paragraph) 'paragraph) ...) which seems to prevent the second case. That is certainly unrelated to my problem. Fabrice --001a1133ba66c532d104f96cd00c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable



2014-05-15 10:55 GMT+02:00 Bastien <bzg@gnu.org>:
Hi Fabrice,

Fabrice Popineau <fabrice.= popineau@gmail.com> writes:

> Using the HTML exporter, I easily get spurious empty elements.

I can't reproduce this. =C2=A0Do you have a recipe with a minimal=
configuration ?


This is already good to know!
I'll try to bisect my emacs config.

Reci= pe : the sole org fragment from my message in an org buffer,
and export the subtree in an html buffer with C-c C-e C-s C-b h H

=C2=A0
Also mention your Org and Emacs version.


Org: git latest (from today). Emacs 24= .4 (trunk devel, under Windows, yeah I know ...).

= I suspect the problem might come from org-html-standalone-image-p (incorrec= tly finding an image for an empty paragraph) or even from org-string-nw-p.<= /div>

What org-string-nw-p should return on a string with the= single EOL character?

BTW, I wonder if org-html-s= tandalone-image-p does actually what is documented. It is documented
as returning non-nil in one of two cases: element is of type paragraph= or of type link.
But its code starts with:

<= div>=C2=A0(and (eq (org-element-type paragraph) 'paragraph)
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 ...)

which seems to prevent the second case. That is certain= ly unrelated to my problem.

Fabrice
--001a1133ba66c532d104f96cd00c--