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