From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: bug report: ox-html with coderef links needs a space between attributes in element (with patch) Date: Tue, 24 Jan 2017 18:22:05 +0100 Message-ID: <87wpdk74qq.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41629) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cW4nP-0000q3-Ah for emacs-orgmode@gnu.org; Tue, 24 Jan 2017 12:22:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cW4nK-0007fs-Ey for emacs-orgmode@gnu.org; Tue, 24 Jan 2017 12:22:15 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:52178) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cW4nK-0007fK-9U for emacs-orgmode@gnu.org; Tue, 24 Jan 2017 12:22:10 -0500 In-Reply-To: (dmg@turingmachine.org's message of "Tue, 24 Jan 2017 02:55:55 -0800") 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: dmg Cc: emacs-orgmode Hello, dmg writes: > I have the following org-snippet: > > --------------------------------------------------------------- > This is an example > > #+BEGIN_SRC sml -r -l "(*(ref:%s)*)" -n > val x =3D 1 > fun f y =3D x + y (*(ref:f)*) > val x =3D 2 > val y =3D 3 > val z =3D f(x+y) (*(ref:callf)*) > #+END_SRC > > - Line [[(f)]] defines a function that, when called, evaluates body *x+y* > in environment where *x* maps to *1* and *y* maps to the argument > ------------------------------------------------------------------ > The HTML that it generates creates invalid HTML (one parser used by my > university refuses to accept it :) > > I have inspected the code and this is where it fails: Note how there is no > space between " and class in the element: > > >
  • Line onmouseover=3D"CodeHighlightOn(this, 'coderef-f');" > onmouseout=3D"CodeHighlightOff(this, 'coderef-f');">2 defines a funct= ion > that, when called, evaluates body x+y > in environment where x maps to 1 and y maps to the > argument
  • > > > =E2=80=8BI am running version 9.0.3 of org. > > I believe this patch will solve the issue. It simply adds a space before > the class attribute. It works but I eventually applied a slightly different patch. Thank you for both the report and the patch. Regards, --=20 Nicolas Goaziou