diff --git a/Doc/html/style.css b/Doc/html/style.css index a71541a8f3e..ce42ffb79e4 100644 --- a/Doc/html/style.css +++ b/Doc/html/style.css @@ -108,6 +108,8 @@ div.note .label { margin-right: 0.5em; padding: 0.05in; } .grammar-footer { padding: 0.05in; font-size: 85%; } +.grammartoken { font-family: "lucida typewriter", lucidatypewriter, + monospace; } .productions { background-color: #bbeeff; } .productions a:active { color: #ff0000; } @@ -115,7 +117,28 @@ div.note .label { margin-right: 0.5em; .productions a:visited:hover { background-color: #99ccff; } .productions a:visited { color: #551a8b; } .productions a:link { color: #0000bb; } -.productions table { vertical-align: baseline; } +.productions table { vertical-align: baseline; + empty-cells: show; } +.productions > table td, +.productions > table th { padding: 2px; } +.productions > table td:first-child, +.productions > table td:last-child { + font-family: "lucida typewriter", + lucidatypewriter, + monospace; + } +/* same as the second selector above, but expressed differently for Opera */ +.productions > table td:first-child + td + td { + font-family: "lucida typewriter", + lucidatypewriter, + monospace; + vertical-align: baseline; + } +.productions > table td:first-child + td { + padding-left: 1em; + padding-right: 1em; + } +.productions > table tr { vertical-align: baseline; } .email { font-family: avantgarde, sans-serif; } .mailheader { font-family: avantgarde, sans-serif; } diff --git a/Doc/perl/python.perl b/Doc/perl/python.perl index 3b048033ece..be2443d8f97 100644 --- a/Doc/perl/python.perl +++ b/Doc/perl/python.perl @@ -791,7 +791,7 @@ sub do_cmd_token{ } $BackpatchGrammarFiles{"$CURRENT_FILE"} = 1; } - return "$token" . $_; + return "$token" . $_; } sub do_cmd_grammartoken{ @@ -809,7 +809,7 @@ sub do_env_productionlist{ $DefinedGrammars{$lang} .= $_; return ("
$token
"
+ return ("\n"
+ . " $token \n"
+ . " ::= \n"
+ . " "
. translate_commands($defn)
- . " "
+ . "
"
- . "$token
"
+ return ("\n"
+ . " "
+ . "$token \n"
+ . " ::= \n"
+ . " "
. translate_commands($defn)
- . " "
+ . "
"
. translate_commands($defn)
. "