emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Manuel Giraud <manuel.giraud@univ-nantes.fr>
To: lists@manor-farm.org
Cc: emacs-orgmode@gnu.org
Subject: Re: [Bug] body-only Export Option Adds Extra html Tags.
Date: Tue, 08 Mar 2011 15:30:27 +0100	[thread overview]
Message-ID: <87fwqx3csc.fsf@univ-nantes.fr> (raw)
In-Reply-To: <87mxl53dmx.fsf@univ-nantes.fr> (Manuel Giraud's message of "Tue, 08 Mar 2011 15:12:06 +0100")

[-- Attachment #1: Type: text/plain, Size: 441 bytes --]

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.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0003-correct-tag-closing-for-body-only.patch --]
[-- Type: text/x-patch, Size: 772 bytes --]

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


[-- Attachment #3: Type: text/plain, Size: 19 bytes --]


-- 
Manuel Giraud

  reply	other threads:[~2011-03-08 14:31 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 [this message]
2011-03-08 18:02       ` Ian Barton
2011-03-09 10:29       ` [Accepted] [O, Bug] " Bastien Guerry
2011-03-09 10:29       ` [Bug] " 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=87fwqx3csc.fsf@univ-nantes.fr \
    --to=manuel.giraud@univ-nantes.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=lists@manor-farm.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).