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 13:23:35 +0200 Message-ID: References: <4E89AE38.3020309@christianmoe.com> <80r52unr44.fsf@somewhere.org> 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]:57198) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RB363-0005kM-13 for emacs-orgmode@gnu.org; Tue, 04 Oct 2011 07:23:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RB361-0001W7-P6 for emacs-orgmode@gnu.org; Tue, 04 Oct 2011 07:23:38 -0400 Received: from mail-ey0-f169.google.com ([209.85.215.169]:61444) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RB361-0001Vy-Gn for emacs-orgmode@gnu.org; Tue, 04 Oct 2011 07:23:37 -0400 Received: by eye13 with SMTP id 13so421075eye.0 for ; Tue, 04 Oct 2011 04:23:36 -0700 (PDT) In-Reply-To: <80r52unr44.fsf@somewhere.org> 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: Sebastien Vauban Cc: emacs-orgmode@gnu.org On Oct 3, 2011, at 3:26 PM, Sebastien Vauban wrote: > Hi Christian Moe, >=20 > Christian Moe wrote: >> Hi, >>=20 >> XHTML produced with Org-special-blocks is not well-formed;
tags=20= >> get wrapped in

tags. Example: >>=20 >> Some text. >>=20 >> #+begin_sidebar >> Some details left out of the main text. >>=20 >> Some more details. >> #+end_sidebar >>=20 >> Some more text. >>=20 >> This results in the following html, which causes XML processors to = fail. >>=20 >>

>>

>> Some details left out of the main text. >>

>>

>> Some more details. >>

>>

>>

>> Some more text. >>

>>=20 >> The problem seems to be fixed by un-commenting the fifth line in the=20= >> below function in org-special-blocks.el: >>=20 >> (defun org-special-blocks-convert-html-special-cookies () >> "Converts the special cookies into div blocks." >> ;; Uses the dynamically-bound variable `line'. >> (when (string-match "^ORG-\\(.*\\)-\\(START\\|END\\)$" line) >> ; (org-close-par-maybe) >> (message "%s" (match-string 1)) >> (if (equal (match-string 2 line) "START") >> (insert "
\n") >> (insert "
\n")) >> (throw 'nextline nil))) >>=20 >> Does anyone know if that was commented out for a reason? >=20 > git blame suggests it was there since that file org-special-blocks.el = has been > added (in contrib/lisp, by Carsten, on 2009-05-07 13:53)... >=20 > Best regards, > Seb >=20 > --=20 > Sebastien Vauban >=20 >=20 I see no reason to not uncomment this line. Shall we just do this? - Carsten