Обсуждение: incorrect HTML.index output
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 π, 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.
Alvaro Herrera <alvherre@commandprompt.com> writes: > I just noticed that on bookindex.html, we have this entry: > π, Mathematical Functions and Operators > ... > I'm unsure what to do about it. To me, the simplest solution seems to > be to just remove the index entry. Then it wouldn't be indexed at all. I suggest just not trying to be so cute, and change the index entry like this: <indexterm> - <primary>π</primary> + <primary>pi</primary> </indexterm> regards, tom lane
Tom Lane wrote: > Alvaro Herrera <alvherre@commandprompt.com> writes: > > I just noticed that on bookindex.html, we have this entry: > > π, Mathematical Functions and Operators > > ... > > I'm unsure what to do about it. To me, the simplest solution seems to > > be to just remove the index entry. > > Then it wouldn't be indexed at all. I suggest just not trying to be > so cute, and change the index entry like this: > > <indexterm> > - <primary>π</primary> > + <primary>pi</primary> > </indexterm> That seems simple enough :-) Done. -- Alvaro Herrera Developer, http://www.PostgreSQL.org/ "Doing what he did amounts to sticking his fingers under the hood of the implementation; if he gets his fingers burnt, it's his problem." (Tom Lane)