From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Moe Subject: Re: Org-special-blogs does not make well-formed xhtml Date: Tue, 04 Oct 2011 21:01:15 +0200 Message-ID: <4E8B57FB.5040808@christianmoe.com> References: <4E89AE38.3020309@christianmoe.com> <80r52unr44.fsf@somewhere.org> <81ipo4u8ln.fsf@gmail.com> Reply-To: mail@christianmoe.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:52364) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBACv-00032V-LY for emacs-orgmode@gnu.org; Tue, 04 Oct 2011 14:59:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RBACu-0005NQ-HL for emacs-orgmode@gnu.org; Tue, 04 Oct 2011 14:59:13 -0400 Received: from mars.hitrost.net ([91.185.211.18]:54635) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBACu-0005L0-Ar for emacs-orgmode@gnu.org; Tue, 04 Oct 2011 14:59:12 -0400 In-Reply-To: <81ipo4u8ln.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik , Sebastien Vauban , emacs-orgmode@gnu.org Hi, Carsten, thanks. Jambunathan's probably right, though, that this fix (while necessary) is incomplete. Sorry, I hadn't thought it through. Now, when the first paragraph of a special block comes right after the #+BEGIN_WHATEVER line, it will just come as the first text node of the
block, and will not be wrapped in a

element. So among other things, any special CSS styling for

s will not be applied to it. It's not a big deal -- if you need a

(and often you really don't) the workaround is as simple as leaving an empty line between #+BEGIN_WHATEVER and the first paragraph. But I guess it would be more consistent/expected/helpful behavior for special-blocks to start a new paragraph -- this time *after* the opening

tag and not around it! Yours, Christian On 10/4/11 4:36 PM, Jambunathan K wrote: > > Carsten Dominik writes: >> I see no reason to not uncomment this line. Shall we just do this? > > Shouldn't a paragraph be opened/closed while entering/leaving the div. > > ,---- See org-xhtml-format-environment > | (center > | (case beg-end > | (BEGIN > | (org-lparse-end-paragraph) > | (insert "\n
") > | (org-lparse-begin-paragraph)) > | (END > | (org-lparse-end-paragraph) > | (insert "\n
") > | (org-lparse-begin-paragraph)))) > `---- > > We can always open a paragraph gratis, because empty paragraphs are > pruned at the end of export.