From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: extra paragraph in image export? Date: Wed, 25 Jan 2017 15:59:47 +0100 Message-ID: <87sho7b2xo.fsf@gmx.us> References: <87lgu3b5c8.fsf@nicolasgoaziou.fr> <87sho8ztgv.fsf@gmx.us> <87fuk86tdg.fsf@nicolasgoaziou.fr> <877f5jcmfu.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49393) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cWP3m-0007Th-DK for emacs-orgmode@gnu.org; Wed, 25 Jan 2017 10:00:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cWP3h-0002u4-IS for emacs-orgmode@gnu.org; Wed, 25 Jan 2017 10:00:30 -0500 Received: from [195.159.176.226] (port=35079 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cWP3h-0002u0-9n for emacs-orgmode@gnu.org; Wed, 25 Jan 2017 10:00:25 -0500 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1cWP37-0008TP-42 for emacs-orgmode@gnu.org; Wed, 25 Jan 2017 15:59:49 +0100 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" To: emacs-orgmode@gnu.org Hi, >> I'm not sure. Doesn't look like it to me -- I would instead have put: >> >> - (format "\n

%s

" contents) >> + (format "\n%s" contents) >> >> Because we never want the

tag inside the figure. Isn't that right? > > I don't think so. When `org-html-html5-fancy' is non-nil, "ox-html.el" > uses

tags to separate image and caption. I agree that the

could be retained in the non-HTML5 case. That corresponds to the W3 example below. Note, strictly speaking I guess the non-HTML5 org html output is not necessarily "HTML4", so the example may not apply. https://www.w3.org/Style/Examples/007/figures.en.html#Illustrati > Moreover, there is no

in that case, but a
class=\"figure\">. Can't this contain a

block element? Yes. HTML5 "figure" can hold "p" as well, but it's not necessary, and it seems to be uncommon. Rasmus -- Human: An animal that complicates things more than strictly necessary