[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#218310: marked as done (bibtex2html: doesn't properly quote '&')

Your message dated Mon, 08 Dec 2003 16:02:45 -0500
with message-id <E1ATSWj-0006Tj-00@auric.debian.org>
and subject line Bug#218310: fixed in bibtex2html 1.65-2
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

Received: (at submit) by bugs.debian.org; 30 Oct 2003 13:48:12 +0000
>From giersch@dinadan.u-strasbg.fr Thu Oct 30 07:48:11 2003
Return-path: <giersch@dinadan.u-strasbg.fr>
Received: from dinadan.u-strasbg.fr [] 
	by master.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1AFD9h-0001m9-00; Thu, 30 Oct 2003 07:48:05 -0600
Received: from giersch by dinadan.u-strasbg.fr with local (Exim 3.35 #1 (Debian))
	id 1AFD9f-0000Vw-00
	for <submit@bugs.debian.org>; Thu, 30 Oct 2003 14:48:03 +0100
To: Debian BTS submit <submit@bugs.debian.org>
Subject: bibtex2html: doesn't properly quote '&'
From: Arnaud Giersch <giersch@icps.u-strasbg.fr>
Organization: ICPS
X-Face: &yL?ZRfSIk3zaRm*dlb3R4f.8RM"~b/h|\wI]>pL)}]l$H>.Q3Qd3[<h!`K6mI=+cWpg-El
Date: 30 Oct 2003 14:48:03 +0100
Message-ID: <877k2mhm5o.fsf@dinadan.u-strasbg.fr>
Lines: 37
User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Common Lisp)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: Arnaud Giersch <giersch@dinadan.u-strasbg.fr>
Delivered-To: submit@bugs.debian.org
X-Spam-Status: No, hits=-2.4 required=4.0
X-Spam-Checker-Version: SpamAssassin 2.53-bugs.debian.org_2003_10_28 (

Package: bibtex2html
Version: 1.65-1
Severity: normal
Tags: patch


I have a BibTeX entry with an url field like this:

  url = {http://www.springerlink.com/openurl.asp?genre=article&issn=0302-9743&volume=2840&spage=657},

which bibtex2html translates into HTML by:

  URL = {<a href="http://www.springerlink.com/openurl.asp?genre=article&amp;issn=0302-9743&amp;volume=2536&amp;spage=82";>http://www.springerlink.com/openurl.asp?genre=article&issn=0302-9743&volume=2536&spage=82</a>},

The &'s are correctly quoted inside the href="..." but not between <a>
and </a>. It should produce something like:

  URL = {<a href="http://www.springerlink.com/openurl.asp?genre=article&amp;issn=0302-9743&amp;volume=2536&amp;spage=82";>http://www.springerlink.com/openurl.asp?genre=article&amp;issn=0302-9743&amp;volume=2536&amp;spage=82</a>},

Here is a simple patch correcting my problem. Note that I didn't check
if a similar fix were needed elsewhere.

--- ../bibtex2html-1.65/biboutput.ml    Thu Oct 30 14:23:00 2003
+++ bibtex2html-1.65/biboutput.ml       Thu Oct 30 14:12:04 2003
@@ -75,7 +75,7 @@
   | [String s] ->
       output_string ch "{";
       Html.open_href ch s;
-      output_string ch s;
+      output_string ch (Html.quote_amp s);
       Html.close_href ch;
       output_string ch "}"
   | l ->

Arnaud Giersch

Received: (at 218310-close) by bugs.debian.org; 8 Dec 2003 21:18:48 +0000
>From katie@auric.debian.org Mon Dec 08 15:18:48 2003
Return-path: <katie@auric.debian.org>
Received: from auric.debian.org [] 
	by master.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1ATScG-0000xy-00; Mon, 08 Dec 2003 15:08:29 -0600
Received: from katie by auric.debian.org with local (Exim 3.35 1 (Debian))
	id 1ATSWj-0006Tj-00; Mon, 08 Dec 2003 16:02:45 -0500
From: Ralf Treinen <treinen@debian.org>
To: 218310-close@bugs.debian.org
X-Katie: $Revision: 1.43 $
Subject: Bug#218310: fixed in bibtex2html 1.65-2
Message-Id: <E1ATSWj-0006Tj-00@auric.debian.org>
Sender: Archive Administrator <katie@auric.debian.org>
Date: Mon, 08 Dec 2003 16:02:45 -0500
Delivered-To: 218310-close@bugs.debian.org

Source: bibtex2html
Source-Version: 1.65-2

We believe that the bug you reported is fixed in the latest version of
bibtex2html, which is due to be installed in the Debian FTP archive:

  to pool/main/b/bibtex2html/bibtex2html_1.65-2.diff.gz
  to pool/main/b/bibtex2html/bibtex2html_1.65-2.dsc
  to pool/main/b/bibtex2html/bibtex2html_1.65-2_all.deb

A summary of the changes between this version and the previous one is

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 218310@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
Ralf Treinen <treinen@debian.org> (supplier of updated bibtex2html package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)

Hash: SHA1

Format: 1.7
Date: Mon,  8 Dec 2003 21:12:28 +0100
Source: bibtex2html
Binary: bibtex2html
Architecture: source all
Version: 1.65-2
Distribution: unstable
Urgency: low
Maintainer: Debian OCaml Maintainers <debian-ocaml-maint@lists.debian.org>
Changed-By: Ralf Treinen <treinen@debian.org>
 bibtex2html - BibTeX to HTML translator and BibTeX filter tool
Closes: 198802 218310
 bibtex2html (1.65-2) unstable; urgency=low
   * patch 02_ampersand: quote correctly ampersands inside anchors. Thanks to
     Arnaud Giersch (closes: Bug#218310).
   * patch 03_charset: specify charset in a <meta> tag, take value from
     locale or command line option (closes: Bug#198802).
 b752bb443494c750b83bc9a1fc367435 855 tex optional bibtex2html_1.65-2.dsc
 ab826fc6cbc002769a2b7cca2514b88b 6527 tex optional bibtex2html_1.65-2.diff.gz
 fa20e288725e0c48142e3e4f3bfc49b5 181306 tex optional bibtex2html_1.65-2_all.deb

Version: GnuPG v1.2.3 (GNU/Linux)


Reply to: