From mboxrd@z Thu Jan 1 00:00:00 1970 From: Manuel Giraud Subject: Re: [Bug] body-only Export Option Adds Extra html Tags. Date: Tue, 08 Mar 2011 15:30:27 +0100 Message-ID: <87fwqx3csc.fsf@univ-nantes.fr> References: <4D751FA6.2000703@manor-farm.org> <4D761A29.4030004@manor-farm.org> <87mxl53dmx.fsf@univ-nantes.fr> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from [140.186.70.92] (port=48852 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pwxwj-0001VO-Te for emacs-orgmode@gnu.org; Tue, 08 Mar 2011 09:31:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pwxwf-0004wO-8D for emacs-orgmode@gnu.org; Tue, 08 Mar 2011 09:31:33 -0500 Received: from smtp-tls1.univ-nantes.fr ([193.52.101.145]:45211 helo=smtp-tls.univ-nantes.fr) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pwxwf-0004vQ-15 for emacs-orgmode@gnu.org; Tue, 08 Mar 2011 09:31:29 -0500 In-Reply-To: <87mxl53dmx.fsf@univ-nantes.fr> (Manuel Giraud's message of "Tue, 08 Mar 2011 15:12:06 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: lists@manor-farm.org Cc: emacs-orgmode@gnu.org --=-=-= Manuel Giraud writes: > Ian Barton writes: > >> So it looks like SHA: >> >> da8dc7bba72613131f97a28f1c4a912b8d85d7cc Rewrite the handling of HTML >> preamble/postamble caused the problem. > > I'll have a look at that. Is the and with no opening a > normal behaviour for the :body-only option ? Ok this one was easy. Here's a patch that correct the body-only behaviour. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0003-correct-tag-closing-for-body-only.patch >From 82f25397a156e34d21339a5499c9a52c1b46f333 Mon Sep 17 00:00:00 2001 From: Manuel Giraud Date: Tue, 8 Mar 2011 15:22:30 +0100 Subject: [PATCH 3/3] correct tag closing for body-only --- lisp/org-html.el | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lisp/org-html.el b/lisp/org-html.el index 54cbf36..c60c90d 100644 --- a/lisp/org-html.el +++ b/lisp/org-html.el @@ -1715,7 +1715,7 @@ lang=\"%s\" xml:lang=\"%s\"> (if org-export-html-with-timestamp (insert org-export-html-html-helper-timestamp)) - (insert "\n\n\n\n") + (unless body-only (insert "\n\n\n\n")) (unless (plist-get opt-plist :buffer-will-be-killed) (normal-mode) -- 1.7.1 --=-=-= -- Manuel Giraud --=-=-=--