Horizontal rules are not allowed inside a <p>...</p> structure. We now explicitly exit paragraph mode before inserting the <hr/> tag.
@@ -1,5 +1,8 @@
2008-11-03 Carsten Dominik <dominik@science.uva.nl>
+ * org-exp.el (org-export-as-html): Make sure that <hr/> is between
+ paragraphs, not inside.
+
* org.el (org-todo): Quote
`org-agenda-headline-snapshot-before-repeat'.
@@ -3130,7 +3130,9 @@ lang=\"%s\" xml:lang=\"%s\">
;; Horizontal line
(when (string-match "^[ \t]*-\\{5,\\}[ \t]*$" line)
- (insert "\n<hr/>\n")
+ (if org-par-open
+ (insert "\n</p>\n<hr/>\n<p>\n")
+ (insert "\n<hr/>\n"))
(throw 'nextline nil))
;; Blockquotes and verse