summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-12-14 16:54:53 (GMT)
committerFred Drake <fdrake@acm.org>2001-12-14 16:54:53 (GMT)
commite27f86820a58af7fdb3d546fbf9ee8262d9e7440 (patch)
tree73dc4c368ce57f72ec07d41751d52420a3130eda
parente6965cd9f0e318576cf3a3c4b8beb710fcf5f91a (diff)
downloadcpython-e27f86820a58af7fdb3d546fbf9ee8262d9e7440.zip
cpython-e27f86820a58af7fdb3d546fbf9ee8262d9e7440.tar.gz
cpython-e27f86820a58af7fdb3d546fbf9ee8262d9e7440.tar.bz2
The valign attribute to control the vertical alignment of a table cell should
be on the <tr> element, not the <table> element. Partially fixes SF bug #493243.
-rw-r--r--Doc/perl/python.perl6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/perl/python.perl b/Doc/perl/python.perl
index 9bd22fd..036b2ee 100644
--- a/Doc/perl/python.perl
+++ b/Doc/perl/python.perl
@@ -742,7 +742,7 @@ sub do_env_productionlist{
$DefinedGrammars{$lang} .= $_;
return ("<dl><dd class=\"grammar\">\n"
. "<div class=\"productions\">\n"
- . "<table cellpadding=\"2\" valign=\"baseline\">\n"
+ . "<table cellpadding=\"2\">\n"
. translate_commands(translate_environments($_))
. "</table>\n"
. "</div>\n"
@@ -761,7 +761,7 @@ sub do_cmd_production{
my $lang = $CURRENT_GRAMMAR;
local($CURRENT_TOKEN) = $token;
if ($lang eq '*') {
- return ("<tr>\n"
+ return ("<tr valign=\"baseline\">\n"
. " <td><code>$token</code></td>\n"
. " <td>&nbsp;::=&nbsp;</td>\n"
. " <td><code>"
@@ -777,7 +777,7 @@ sub do_cmd_production{
$target = "$CURRENT_FILE\#tok-$lang-$token";
}
$TokenToTargetMapping{"$CURRENT_GRAMMAR:$token"} = $target;
- return ("<tr>\n"
+ return ("<tr valign=\"baseline\">\n"
. " <td><code><a name=\"tok-$token\">$token</a></code></td>\n"
. " <td>&nbsp;::=&nbsp;</td>\n"
. " <td><code>"