mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-08-27 10:02:53 +00:00
Improve XHTML validation.
Horizontal rules are not allowed inside a <p>...</p> structure. We now explicitly exit paragraph mode before inserting the <hr/> tag.
This commit is contained in:
parent
01989e543a
commit
9d13e3c536
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue