Special blocks: Make well-formed HTML
commit78ad6961ae2ef7b50ab036ff12c2ff7c49e90a6a
authorChristian Moe <mail@christianmoe.com>
Sun, 11 Dec 2011 13:11:05 +0000 (11 14:11 +0100)
committerBastien Guerry <bzg@altern.org>
Sun, 11 Dec 2011 13:11:05 +0000 (11 14:11 +0100)
tree43cfe417d45804ad5ea7043658d611148efbe4da
parent7a513b2c00e83f81c8bf1d3abe482d00a2946abc
Special blocks: Make well-formed HTML

* org-special-blocks.el
(org-special-blocks-convert-html-special-cookies): Close paragraph
before opening or closing the <div>, and open paragraph after. Also
changed newline placement to be the same as for other blocks.

The problem was that special blocks did not produce well-formed HTML
because they  wrapped the opening and closing
<div> tags in <p> tags.

TINYCHANGE

This patch only borrows a few lines from the handling of `CENTER'
blocks in org-export-as-html.
lisp/org-special-blocks.el