mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2025-01-05 11:45:52 +00:00
Avoid line </div> if there is no headline.
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.
This commit is contained in:
parent
500614f12d
commit
ecd801ab19
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user