Browse Source

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

Carsten Dominik 16 years ago
parent
commit
e1ed8cf2e9
2 changed files with 4 additions and 0 deletions
  1. 2 0
      lisp/ChangeLog
  2. 2 0
      lisp/org-exp.el

+ 2 - 0
lisp/ChangeLog

@@ -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

+ 2 - 0
lisp/org-exp.el

@@ -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