Browse Source

org-html.el: Bugfix: don't insert closing HTML tags when exporting body only.

* org-html.el (org-export-as-html): Bugfix: don't insert
closing HTML tags when exporting body only.
Manuel Giraud 14 years ago
parent
commit
44684a9977
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lisp/org-html.el

+ 1 - 1
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)