Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e27f868

Browse files
committed
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.
1 parent e6965cd commit e27f868

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Doc/perl/python.perl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ sub do_env_productionlist{
742742
$DefinedGrammars{$lang} .= $_;
743743
return ("<dl><dd class=\"grammar\">\n"
744744
. "<div class=\"productions\">\n"
745-
. "<table cellpadding=\"2\" valign=\"baseline\">\n"
745+
. "<table cellpadding=\"2\">\n"
746746
. translate_commands(translate_environments($_))
747747
. "</table>\n"
748748
. "</div>\n"
@@ -761,7 +761,7 @@ sub do_cmd_production{
761761
my $lang = $CURRENT_GRAMMAR;
762762
local($CURRENT_TOKEN) = $token;
763763
if ($lang eq '*') {
764-
return ("<tr>\n"
764+
return ("<tr valign=\"baseline\">\n"
765765
. " <td><code>$token</code></td>\n"
766766
. " <td>&nbsp;::=&nbsp;</td>\n"
767767
. " <td><code>"
@@ -777,7 +777,7 @@ sub do_cmd_production{
777777
$target = "$CURRENT_FILE\#tok-$lang-$token";
778778
}
779779
$TokenToTargetMapping{"$CURRENT_GRAMMAR:$token"} = $target;
780-
return ("<tr>\n"
780+
return ("<tr valign=\"baseline\">\n"
781781
. " <td><code><a name=\"tok-$token\">$token</a></code></td>\n"
782782
. " <td>&nbsp;::=&nbsp;</td>\n"
783783
. " <td><code>"

0 commit comments

Comments
 (0)