From: Yuhei Maeda <yuhei.maeda@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Bug: [PATCH] org-export-as-html returns invalid value [7.5]
Date: Wed, 22 Jun 2011 21:59:56 +0900 [thread overview]
Message-ID: <87tybi81ir.fsf@gmail.com> (raw)
hi.
When BODY-ONLY is t, org-export-as-html returns invalid value.
org-export-as-html is function defined on org-html.el
in detail, it includes "\n</div>\n</body>\n</html>\n" at the end of
return value.
PATCH is below.
org-html.el
@@ -1714,8 +1714,8 @@
(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)
Emacs : GNU Emacs 23.2.1 (i686-pc-linux-gnu, GTK+ Version 2.24.4)
of 2011-04-04 on rothera, modified by Debian
Package: Org-mode version 7.5
next reply other threads:[~2011-06-22 13:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-22 12:59 Yuhei Maeda [this message]
2011-06-24 15:51 ` Bug: [PATCH] org-export-as-html returns invalid value [7.5] Bastien
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87tybi81ir.fsf@gmail.com \
--to=yuhei.maeda@gmail.com \
--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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.