From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Org-special-blogs does not make well-formed xhtml Date: Tue, 4 Oct 2011 23:33:50 +0200 Message-ID: <2704BF81-08C0-4616-AFF1-20797E42CAE3@gmail.com> References: <4E89AE38.3020309@christianmoe.com> <80r52unr44.fsf@somewhere.org> <81ipo4u8ln.fsf@gmail.com> <4E8B57FB.5040808@christianmoe.com> Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:49840) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBCce-0003f4-Fh for emacs-orgmode@gnu.org; Tue, 04 Oct 2011 17:33:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RBCcc-00057X-V5 for emacs-orgmode@gnu.org; Tue, 04 Oct 2011 17:33:56 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:50396) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBCcc-00057R-O5 for emacs-orgmode@gnu.org; Tue, 04 Oct 2011 17:33:54 -0400 Received: by wyf22 with SMTP id 22so1203754wyf.0 for ; Tue, 04 Oct 2011 14:33:53 -0700 (PDT) In-Reply-To: <4E8B57FB.5040808@christianmoe.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: mail@christianmoe.com Cc: Sebastien Vauban , emacs-orgmode@gnu.org Hi Christian, for now I have reverted the patch. WOuld you like to work on a better = one? - Carsten On 4.10.2011, at 21:01, Christian Moe wrote: > Hi, >=20 > Carsten, thanks. >=20 > Jambunathan's probably right, though, that this fix (while necessary) = is incomplete. Sorry, I hadn't thought it through. >=20 > 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. >=20 > 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. >=20 > 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! >=20 > Yours, > Christian >=20 >=20 > On 10/4/11 4:36 PM, Jambunathan K wrote: >>=20 >> Carsten Dominik writes: >>> I see no reason to not uncomment this line. Shall we just do this? >>=20 >> Shouldn't a paragraph be opened/closed while entering/leaving the = div. >>=20 >> ,---- 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)))) >> `---- >>=20 >> We can always open a paragraph gratis, because empty paragraphs are >> pruned at the end of export.