Make sure text before the first headline is in <p>.

This commit is contained in:
Carsten Dominik 2008-09-07 17:37:56 +02:00
parent 87292441ab
commit e1ed8cf2e9
2 changed files with 4 additions and 0 deletions

View File

@ -3,6 +3,8 @@
* org-exp.el (org-export-as-html): Do not turn on the major mode
if the buffer will be killed anyway.
(org-get-current-options): Exclude the #+TEXT field.
(org-export-as-html): Make sure text before the first headline is
a paragraph.
* org-publish.el (org-publish-org-to): Tell the exporter that this
buffer will be killed, so it is not necessary to do major mode

View File

@ -2938,6 +2938,8 @@ lang=\"%s\" xml:lang=\"%s\">
(setq head-count 0)
(org-init-section-numbers)
(org-open-par)
(while (setq line (pop lines) origline line)
(catch 'nextline