emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] [Accepted] [O, Bug] body-only Export Option Adds Extra html Tags.


From: Bastien Guerry
Subject: [O] [Accepted] [O, Bug] body-only Export Option Adds Extra html Tags.
Date: Wed, 9 Mar 2011 11:29:19 +0100 (CET)

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 <address@hidden>
> X-Patchwork-Id: 662
> Message-Id: <address@hidden>
> To: address@hidden
> Cc: address@hidden
> 
> Manuel Giraud <address@hidden> writes:
> 
> > Ian Barton <address@hidden> 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 <address@hidden>
> 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
> 
> 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]