R-beta: Literal "&" in help index

Peter Dalgaard BSA (Ted.Harding@nessie.mcc.ac.uk)
Mon, 15 Jun 1998 01:16:06 +0100 (BST)


In-Reply-To: <x2ra0sujs9.fsf@blueberry.kubism.ku.dk>
Date: Mon, 15 Jun 1998 01:16:06 +0100 (BST)
From: (Ted Harding) <Ted.Harding@nessie.mcc.ac.uk>
To: R-announce@stat.math.ethz.ch
Subject: R-beta: Literal "&" in help index

Hi Folks,

The file .../lib/R/library/base/html/00Index.html (the contents list of the R
base package help) contains the lines:

<TR><TD width=25%><A HREF="Logic.html">&</A></TD>
<TD>Logical Operators</TD></TR>
<TR><TD width=25%><A HREF="Logic.html">&&</A></TD>
<TD>Logical Operators</TD></TR>

These cause my neat little "kdehelp" browser to segfault when clicking on an
HREF from this file (though netscape seems robust to it). This is because "&"
is an escape for "special characters" in HTML, and the problem is cured if each
"&" is replaced by the HTML escape code for a literal "&", namely "&amp;", so
that the lines become

<TR><TD width=25%><A HREF="Logic.html">&amp;</A></TD>
<TD>Logical Operators</TD></TR>
<TR><TD width=25%><A HREF="Logic.html">&amp;&amp;</A></TD>
<TD>Logical Operators</TD></TR>

For those of you contemplating using something other than netscape, the above
change may be worth noting, in case you encounter the same problem.

It is probably worth "officially" making this change anyway, for the sake of
"pure" HTML.

Best wishes to all,
Ted.


--------------------------------------------------------------------
E-Mail: (Ted Harding) <Ted.Harding@nessie.mcc.ac.uk>
Date: 15-Jun-98                                       Time: 01:16:06
--------------------------------------------------------------------
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._