From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Lusk Subject: Re: Bug: HTML export with XML source code containing hex-encoded entities borked [9.1.2 (9.1.2-25-g2567fe-elpa @ c:/Users/j6l/AppData/Roaming/.emacs.d/elpa/org-20171030/)] Date: Mon, 3 Dec 2018 17:20:00 -0500 Message-ID: References: <87pnuijznt.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000006639a6057c258d1c" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39245) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gTwZj-0005BS-6r for emacs-orgmode@gnu.org; Mon, 03 Dec 2018 17:20:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gTwZf-0001WG-FI for emacs-orgmode@gnu.org; Mon, 03 Dec 2018 17:20:21 -0500 Received: from mail-qt1-x82c.google.com ([2607:f8b0:4864:20::82c]:40982) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gTwZe-0001S3-3G for emacs-orgmode@gnu.org; Mon, 03 Dec 2018 17:20:19 -0500 Received: by mail-qt1-x82c.google.com with SMTP id d18so15781929qto.8 for ; Mon, 03 Dec 2018 14:20:12 -0800 (PST) In-Reply-To: <87pnuijznt.fsf@nicolasgoaziou.fr> 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" To: emacs-orgmode@gnu.org --0000000000006639a6057c258d1c Content-Type: text/plain; charset="UTF-8" Cool, will do, thanks. John. On Mon, Dec 3, 2018 at 12:19 PM Nicolas Goaziou wrote: > Hello, > > John Lusk writes: > > > Trying to export the follow .org file to HTML: > > > > * Header 1 > > > > #+BEGIN_SRC xml > > > > > > > > > > #+END_SRC > > > > Results in the following error: > > > > cons: Args out of range: "&#", 0, 5 > > > > and no output. > > This seems to be a bug in htmlize, an external library which is used to > transform Org fontification into HTML. You can reproduce it by calling > on the following document: > > > > > > > You may want to report it upstream > (https://github.com/hniksic/emacs-htmlize). > > Regards, > > -- > Nicolas Goaziou > --0000000000006639a6057c258d1c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Cool, will do, thanks.

John.

On Mon, Dec 3, 2018 at 12:= 19 PM Nicolas Goaziou <mail@ni= colasgoaziou.fr> wrote:
Hell= o,

John Lusk <john= lusk4@gmail.com> writes:

> Trying to export the follow .org file to HTML:
>
>=C2=A0 =C2=A0 =C2=A0* Header 1
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0#+BEGIN_SRC xml
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0<?xml version=3D"1.0" en= coding=3D"utf-8" ?>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0<root>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0<elt value=3D"one&= #xA;two"/>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0</root>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0#+END_SRC
>
> Results in the following error:
>
>=C2=A0 =C2=A0 =C2=A0cons: Args out of range: "&#", 0, 5 >
> and no output.

This seems to be a bug in htmlize, an external library which is used to
transform Org fontification into HTML.=C2=A0 You can reproduce it by callin= g
<M-x htmlize-buffer> on the following document:

=C2=A0 =C2=A0 =C2=A0 =C2=A0<?xml version=3D"1.0" encoding=3D&q= uot;utf-8" ?>
=C2=A0 =C2=A0 =C2=A0 =C2=A0<root>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0<elt value=3D"one&#xA;two&quo= t;/>
=C2=A0 =C2=A0 =C2=A0 =C2=A0</root>

You may want to report it upstream
(https://github.com/hniksic/emacs-htmlize).

Regards,

--
Nicolas Goaziou
--0000000000006639a6057c258d1c--