mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	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:
		
							parent
							
								
									e6965cd9f0
								
							
						
					
					
						commit
						e27f86820a
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		|  | @ -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> ::= </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> ::= </td>\n" | ||||
|             . "    <td><code>" | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Fred Drake
						Fred Drake