From 1d767c3feb41ecaa6b7c46ac599252c8393e3b96 Mon Sep 17 00:00:00 2001 From: David Aspinall Date: Wed, 1 Dec 1999 19:15:04 +0000 Subject: Fix HTML errors by adding name arg to dt() function. --- html/functions.php3 | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'html/functions.php3') 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 "
"; +function dt($string,$name="") { + print "
"; + if ($name != "") { print ""; } + print "
"; print $string; - print "
"; -/* Good version, okay in IE: - print "
" . $string . "
"; -*/ + print ""; + if ($name != "") { print "
"; } + print ""; } /* Automatic footnotes? */ -- cgit v1.2.3