emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bastien Guerry <bzg@altern.org>
To: emacs-orgmode@gnu.org
Subject: [Accepted] [O, Bug] body-only Export Option Adds Extra html Tags.
Date: Wed,  9 Mar 2011 11:29:19 +0100 (CET)	[thread overview]
Message-ID: <20110309102919.509496A2D@myhost.localdomain> (raw)
In-Reply-To: 87fwqx3csc.fsf@univ-nantes.fr

Patch 662 (http://patchwork.newartisans.com/patch/662/) is now "Accepted".

Maintainer comment: none

This relates to the following submission:

http://mid.gmane.org/%3C87fwqx3csc.fsf%40univ-nantes.fr%3E

Here is the original message containing the patch:

> Content-Type: text/plain; charset="utf-8"
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Subject: [O,Bug] body-only Export Option Adds Extra html Tags.
> Date: Tue, 08 Mar 2011 19:30:27 -0000
> From: Manuel Giraud <manuel.giraud@univ-nantes.fr>
> X-Patchwork-Id: 662
> Message-Id: <87fwqx3csc.fsf@univ-nantes.fr>
> To: lists@manor-farm.org
> Cc: emacs-orgmode@gnu.org
> 
> Manuel Giraud <manuel.giraud@univ-nantes.fr> writes:
> 
> > Ian Barton <lists@manor-farm.org> 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 </div> and </body> 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.
> 
> 
> >From 82f25397a156e34d21339a5499c9a52c1b46f333 Mon Sep 17 00:00:00 2001
> From: Manuel Giraud <manuel.giraud@univ-nantes.fr>
> 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</div>\n</body>\n</html>\n")
> +      (unless body-only (insert "\n</div>\n</body>\n</html>\n"))
>  
>        (unless (plist-get opt-plist :buffer-will-be-killed)
>  	(normal-mode)
> -- 
> 1.7.1
> 
> 

  parent reply	other threads:[~2011-03-09 10:29 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-07 18:10 [Bug] body-only Export Option Adds Extra html Tags Ian Barton
2011-03-08 11:59 ` Ian Barton
2011-03-08 14:12   ` Manuel Giraud
2011-03-08 14:30     ` Manuel Giraud
2011-03-08 18:02       ` Ian Barton
2011-03-09 10:29       ` Bastien Guerry [this message]
2011-03-09 10:29       ` Bastien
2011-03-08 14:34     ` Bernt Hansen

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=20110309102919.509496A2D@myhost.localdomain \
    --to=bzg@altern.org \
    --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).