Skip to content

Commit 7ca094e

Browse files
committed
[css2] Modified to create more compact tables (using cellspacing/cellpadding: yuck) Once user agents support tables better, we can use CSS instead
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%40617
1 parent 43cbe8b commit 7ca094e

4 files changed

Lines changed: 24 additions & 12 deletions

File tree

css2/bin/Attic/dextr

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# <span class="propinst-name">&lt;'name'&gt;</span>
1313
#
1414
# Ian Jacobs - ij@w3.org (Based on work by Arnaud Le Hors)
15-
# $Id: dextr,v 1.5 1997-12-11 00:12:37 ijacobs Exp $
15+
# $Id: dextr,v 1.6 1998-01-09 14:35:59 ijacobs Exp $
1616

1717
$PROGNAME = substr($0, rindex($0, "/") + 1);
1818

@@ -50,7 +50,9 @@ $init = $_[2];
5050
$media = $_[3];
5151
print output "<DIV class=\"descdef\">\n";
5252
print output "<P><a name=\"descdef-$name\" class=\"descdef-title\"><strong>'$name'</strong> (Descriptor)</a></P>\n";
53-
print output "<TABLE class=\"descinfo\">\n";
53+
# We use cellspacing/cellpadding until more browsers
54+
# handle tables correctly.
55+
print output "<TABLE class=\"descinfo\" cellpadding=0 cellspacing=0>\n";
5456
&format_name($name);
5557
&format_values($values);
5658
&format_init($init);
@@ -61,7 +63,7 @@ print output "</DIV>\n\n";
6163

6264
sub format_name {
6365
print output "<TR valign=\"top\"><TH align=\"right\">Descriptor name:";
64-
print output "<TD><span class=\"index-def\" title=\"'$_[0]' (descriptor)\">\'$_[0]\'</span></TR>\n";
66+
print output "&nbsp;<TD><span class=\"index-def\" title=\"'$_[0]' (descriptor)\">\'$_[0]\'</span></TR>\n";
6567
}
6668

6769
sub format_values {

css2/bin/Attic/pextr

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# <span class="propinst-name">&lt;'name'&gt;</span>
1414
#
1515
# Ian Jacobs - ij@w3.org (Based on work by Arnaud Le Hors)
16-
# $Id: pextr,v 1.6 1997-12-16 20:51:56 ijacobs Exp $
16+
# $Id: pextr,v 1.7 1998-01-09 14:36:06 ijacobs Exp $
1717

1818
$PROGNAME = substr($0, rindex($0, "/") + 1);
1919

@@ -55,7 +55,9 @@ $media = $_[6];
5555
#Do next three lines in src files to get headings right.
5656
print output "<DIV class=\"propdef\">\n";
5757
print output "<P><a name=\"propdef-$name\" class=\"propdef-title\"><strong>'$name'</strong></a></P>\n";
58-
print output "<TABLE class=\"propinfo\">\n";
58+
# Sorry, we use cellspacing/cellpadding until tables
59+
# handled better in user agents.
60+
print output "<TABLE class=\"propinfo\" cellspacing=0 cellpadding=0>\n";
5961
&format_name($name);
6062
&format_values($values);
6163
&format_init($init);
@@ -67,9 +69,11 @@ print output "</TABLE>\n";
6769
print output "</DIV>\n\n";
6870
}
6971

72+
# Include an nbsp before TD since CSS not used to
73+
# align tables yet.
7074
sub format_name {
7175
print output "<TR valign=\"top\"><TH align=\"right\">Property name:";
72-
print output "<TD><span class=\"index-def\" title=\"'$_[0]'\">\'$_[0]\'</span></TR>\n";
76+
print output "&nbsp;<TD><span class=\"index-def\" title=\"'$_[0]'\">\'$_[0]\'</span></TR>\n";
7377
}
7478

7579
sub format_values {

css2/bin/dextr

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# <span class="propinst-name">&lt;'name'&gt;</span>
1313
#
1414
# Ian Jacobs - ij@w3.org (Based on work by Arnaud Le Hors)
15-
# $Id: dextr,v 1.5 1997-12-11 00:12:37 ijacobs Exp $
15+
# $Id: dextr,v 1.6 1998-01-09 14:35:59 ijacobs Exp $
1616

1717
$PROGNAME = substr($0, rindex($0, "/") + 1);
1818

@@ -50,7 +50,9 @@ $init = $_[2];
5050
$media = $_[3];
5151
print output "<DIV class=\"descdef\">\n";
5252
print output "<P><a name=\"descdef-$name\" class=\"descdef-title\"><strong>'$name'</strong> (Descriptor)</a></P>\n";
53-
print output "<TABLE class=\"descinfo\">\n";
53+
# We use cellspacing/cellpadding until more browsers
54+
# handle tables correctly.
55+
print output "<TABLE class=\"descinfo\" cellpadding=0 cellspacing=0>\n";
5456
&format_name($name);
5557
&format_values($values);
5658
&format_init($init);
@@ -61,7 +63,7 @@ print output "</DIV>\n\n";
6163

6264
sub format_name {
6365
print output "<TR valign=\"top\"><TH align=\"right\">Descriptor name:";
64-
print output "<TD><span class=\"index-def\" title=\"'$_[0]' (descriptor)\">\'$_[0]\'</span></TR>\n";
66+
print output "&nbsp;<TD><span class=\"index-def\" title=\"'$_[0]' (descriptor)\">\'$_[0]\'</span></TR>\n";
6567
}
6668

6769
sub format_values {

css2/bin/pextr

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# <span class="propinst-name">&lt;'name'&gt;</span>
1414
#
1515
# Ian Jacobs - ij@w3.org (Based on work by Arnaud Le Hors)
16-
# $Id: pextr,v 1.6 1997-12-16 20:51:56 ijacobs Exp $
16+
# $Id: pextr,v 1.7 1998-01-09 14:36:06 ijacobs Exp $
1717

1818
$PROGNAME = substr($0, rindex($0, "/") + 1);
1919

@@ -55,7 +55,9 @@ $media = $_[6];
5555
#Do next three lines in src files to get headings right.
5656
print output "<DIV class=\"propdef\">\n";
5757
print output "<P><a name=\"propdef-$name\" class=\"propdef-title\"><strong>'$name'</strong></a></P>\n";
58-
print output "<TABLE class=\"propinfo\">\n";
58+
# Sorry, we use cellspacing/cellpadding until tables
59+
# handled better in user agents.
60+
print output "<TABLE class=\"propinfo\" cellspacing=0 cellpadding=0>\n";
5961
&format_name($name);
6062
&format_values($values);
6163
&format_init($init);
@@ -67,9 +69,11 @@ print output "</TABLE>\n";
6769
print output "</DIV>\n\n";
6870
}
6971

72+
# Include an nbsp before TD since CSS not used to
73+
# align tables yet.
7074
sub format_name {
7175
print output "<TR valign=\"top\"><TH align=\"right\">Property name:";
72-
print output "<TD><span class=\"index-def\" title=\"'$_[0]'\">\'$_[0]\'</span></TR>\n";
76+
print output "&nbsp;<TD><span class=\"index-def\" title=\"'$_[0]'\">\'$_[0]\'</span></TR>\n";
7377
}
7478

7579
sub format_values {

0 commit comments

Comments
 (0)