diff options
| author | David Aspinall | 1999-12-01 19:15:04 +0000 |
|---|---|---|
| committer | David Aspinall | 1999-12-01 19:15:04 +0000 |
| commit | 1d767c3feb41ecaa6b7c46ac599252c8393e3b96 (patch) | |
| tree | 894fa0069422e28782a3918b153d82277e1c2227 /html/functions.php3 | |
| parent | 355c89f4ad30f7783c9beadf1d105e8dc6f2a127 (diff) | |
Fix HTML errors by adding name arg to dt() function.
Diffstat (limited to 'html/functions.php3')
| -rw-r--r-- | html/functions.php3 | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/html/functions.php3 b/html/functions.php3 index 78cf32ca..75c2291c 100644 --- a/html/functions.php3 +++ b/html/functions.php3 @@ -45,14 +45,14 @@ function project_email() { /* Style sheet element for dt doesnt work in Netscape 4, so hack it here. NB! This violates HTML 4 DTD. */ - -function dt($string) { - print "<dt><div style=\"font-style:italic; font-weight: bold\">"; +function dt($string,$name="") { + print "<dt>"; + if ($name != "") { print "<a name =\"$name\">"; } + print "<div style=\"font-style:italic; font-weight: bold\">"; print $string; - print "</div></dt>"; -/* Good version, okay in IE: - print "<dt>" . $string . "</dt>"; -*/ + print "</div>"; + if ($name != "") { print "</a>"; } + print "</dt>"; } /* Automatic footnotes? */ |
