This is a bugfix. When the number of headline levels was set to zero, or if there was no heading at all in the export, the final closing </div> should not be present.
@@ -1,3 +1,8 @@
+2008-11-15 Carsten Dominik <carsten.dominik@gmail.com>
+
+ * org-exp.el (org-export-as-html): Avoid lone </div> when no
+ headlines are created.
2008-11-14 Carsten Dominik <carsten.dominik@gmail.com>
* org.el (org-link-translation-function): New option.
@@ -3511,7 +3511,7 @@ lang=\"%s\" xml:lang=\"%s\">
(and org-export-with-toc (<= level umax))
head-count)
;; the </div> to close the last text-... div.
- (insert "</div>\n")
+ (when (and (> umax 0) first-heading-pos) (insert "</div>\n"))
(save-excursion
(goto-char (point-min))