Hi,

I just uncommented a line in org-special-blocks.el that made div special
blocks (like #+begin_foo) in html export to be between <p>…</p>…
It seems to work well like this (and now the produced documents are W3C
valid).

Any clue on why it was commented ?

diff --git a/lisp/org-special-blocks.el b/lisp/org-special-blocks.el
index 2da57f0..d55e255 100644
--- a/lisp/org-special-blocks.el
+++ b/lisp/org-special-blocks.el
@@ -81,7 +81,7 @@ seen.  This is run after a few special cases are taken care of."
   "Converts the special cookies into div blocks."
   ;; Uses the dynamically-bound variable `line'.
   (when (string-match "^ORG-\\(.*\\)-\\(START\\|END\\)$" line)
-;    (org-close-par-maybe)
+    (org-close-par-maybe)
     (message "%s" (match-string 1))
     (if (equal (match-string 2 line) "START")
 	(insert "<div class=\"" (match-string 1 line) "\">\n")

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to