Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 98EB79F99D1 for ; Sat, 6 Oct 2007 17:36:10 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 71211-07 for ; Sat, 6 Oct 2007 17:36:05 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from lists.commandprompt.com (host-254.commandprompt.net [207.173.203.254]) by postgresql.org (Postfix) with ESMTP id 6D1249F99E0 for ; Sat, 6 Oct 2007 17:36:03 -0300 (ADT) Received: from perhan.alvh.no-ip.org (201-220-98-36.bk9-dsl.surnet.cl [201.220.98.36]) (authenticated bits=0) by lists.commandprompt.com (8.13.7/8.13.6) with ESMTP id l96Ka3Qn017676 for ; Sat, 6 Oct 2007 13:36:04 -0700 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 4E46747C6E; Sat, 6 Oct 2007 16:36:02 -0400 (CLT) Date: Sat, 6 Oct 2007 16:36:02 -0400 From: Alvaro Herrera To: pgsql-docs@postgresql.org Subject: incorrect HTML.index output Message-ID: <20071006203602.GL7190@alvh.no-ip.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.16 (2007-06-11) X-Virus-Scanned: ClamAV 0.91.1/4482/Fri Oct 5 15:43:49 2007 on projects.commandprompt.com X-Virus-Status: Clean X-Greylist: Sender succeded SMTP AUTH authentication, not delayed by milter-greylist-1.6 (lists.commandprompt.com [192.168.2.159]); Sat, 06 Oct 2007 13:36:05 -0700 (PDT) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200710/19 X-Sequence-Number: 4440 Hi, I just noticed that on bookindex.html, we have this entry: π, Mathematical Functions and Operators This is an entry for "pi". In the HTML it looks like &#960;, Mathematical Functions and Operators So the actual problem is that we're escaping the & twice. The problem is in HTML.index, which looks like this: INDEXTERM functions-math.html INDEXPOINT functions-math.html#AEN6970 TITLE Mathematical Functions and Operators significance NORMAL PRIMARY π /INDEXTERM However, it's not as easy as disabling the escape of &, because we also have this entry: INDEXTERM functions-textsearch.html#FUNCTIONS-TEXTSEARCH-TSQUERY INDEXPOINT functions-textsearch.html#AEN13687 TITLE tsquery significance NORMAL PRIMARY TSQUERY && TSQUERY /INDEXTERM So these & must be escaped, otherwise this operator wouldn't be displayed correctly. I'm unsure what to do about it. To me, the simplest solution seems to be to just remove the index entry. -- Alvaro Herrera http://www.advogato.org/person/alvherre Major Fambrough: You wish to see the frontier? John Dunbar: Yes sir, before it's gone.