* Bug: [PATCH] org-export-as-html returns invalid value [7.5]
@ 2011-06-22 12:59 Yuhei Maeda
2011-06-24 15:51 ` Bastien
0 siblings, 1 reply; 2+ messages in thread
From: Yuhei Maeda @ 2011-06-22 12:59 UTC (permalink / raw)
To: emacs-orgmode
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Bug: [PATCH] org-export-as-html returns invalid value [7.5]
2011-06-22 12:59 Bug: [PATCH] org-export-as-html returns invalid value [7.5] Yuhei Maeda
@ 2011-06-24 15:51 ` Bastien
0 siblings, 0 replies; 2+ messages in thread
From: Bastien @ 2011-06-24 15:51 UTC (permalink / raw)
To: Yuhei Maeda; +Cc: emacs-orgmode
Hi Yuhei,
Yuhei Maeda <yuhei.maeda@gmail.com> writes:
> -
> - (insert "\n</div>\n</body>\n</html>\n")
> + (unless body-only
> + (insert "\n</div>\n</body>\n</html>\n"))
thanks -- this is already fixed in the current git version of Org.
Best,
--
Bastien
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-06-24 15:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-22 12:59 Bug: [PATCH] org-export-as-html returns invalid value [7.5] Yuhei Maeda
2011-06-24 15:51 ` Bastien
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).