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.
This commit is contained in:
Fred Drake 2001-12-14 16:54:53 +00:00
parent e6965cd9f0
commit e27f86820a
1 changed files with 3 additions and 3 deletions

View File

@ -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>"