From 9d13e3c536015e00a674b8c4113e3ffb68051907 Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Mon, 3 Nov 2008 21:54:28 +0100 Subject: [PATCH] Improve XHTML validation. Horizontal rules are not allowed inside a

...

structure. We now explicitly exit paragraph mode before inserting the
tag. --- lisp/ChangeLog | 3 +++ lisp/org-exp.el | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 7c41d9224..a4ae0f8ce 100755 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,8 @@ 2008-11-03 Carsten Dominik + * org-exp.el (org-export-as-html): Make sure that
is between + paragraphs, not inside. + * org.el (org-todo): Quote `org-agenda-headline-snapshot-before-repeat'. diff --git a/lisp/org-exp.el b/lisp/org-exp.el index 88147dcbf..4be6b0133 100644 --- a/lisp/org-exp.el +++ b/lisp/org-exp.el @@ -3130,7 +3130,9 @@ lang=\"%s\" xml:lang=\"%s\"> ;; Horizontal line (when (string-match "^[ \t]*-\\{5,\\}[ \t]*$" line) - (insert "\n
\n") + (if org-par-open + (insert "\n

\n
\n

\n") + (insert "\n


\n")) (throw 'nextline nil)) ;; Blockquotes and verse