diff options
author | Fred Drake <fdrake@acm.org> | 2003-07-16 14:01:56 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2003-07-16 14:01:56 (GMT) |
commit | bd5fdd93a9484accb188bc7ef62d2d1af937149a (patch) | |
tree | 20a412df8a4c2eacce270a2847678326490e3e89 | |
parent | a66b6c12672a8961952e20eac58292d422b5ecb9 (diff) | |
download | cpython-bd5fdd93a9484accb188bc7ef62d2d1af937149a.zip cpython-bd5fdd93a9484accb188bc7ef62d2d1af937149a.tar.gz cpython-bd5fdd93a9484accb188bc7ef62d2d1af937149a.tar.bz2 |
Make it easier to figure out the where a menuselection starts and ends
by controling the font.
-rw-r--r-- | Doc/html/style.css | 1 | ||||
-rw-r--r-- | Doc/perl/python.perl | 3 | ||||
-rw-r--r-- | Doc/texinputs/python.sty | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/Doc/html/style.css b/Doc/html/style.css index a77fab5..c722db3 100644 --- a/Doc/html/style.css +++ b/Doc/html/style.css @@ -115,6 +115,7 @@ div.note .label { margin-right: 0.5em; .newsgroup { font-family: avantgarde, sans-serif; } .url { font-family: avantgarde, sans-serif; } .file { font-family: avantgarde, sans-serif; } +.menuselection { font-family: avantgarde, sans-serif; } .tableheader { background-color: #99ccff; font-family: avantgarde, sans-serif; } diff --git a/Doc/perl/python.perl b/Doc/perl/python.perl index cd04ee5..7d50e49 100644 --- a/Doc/perl/python.perl +++ b/Doc/perl/python.perl @@ -95,7 +95,8 @@ sub do_cmd_textless{ '<' . $_[0]; } sub do_cmd_textunderscore{ '_' . $_[0]; } sub do_cmd_infinity{ '∞' . $_[0]; } sub do_cmd_plusminus{ '±' . $_[0]; } -sub do_cmd_menuselection{ $_[0]; } +sub do_cmd_menuselection{ + return use_wrappers($_[0], '<span class="menuselection">', '</span>'); } sub do_cmd_sub{ ' > ' . $_[0]; } diff --git a/Doc/texinputs/python.sty b/Doc/texinputs/python.sty index c89cedc..a85bb78 100644 --- a/Doc/texinputs/python.sty +++ b/Doc/texinputs/python.sty @@ -822,7 +822,7 @@ \newcommand{\infinity}{\ensuremath{\infty}} \newcommand{\plusminus}{\ensuremath{\pm}} % \menuselection{Start \sub Programs \sub Python} -\newcommand{\menuselection}[1]{{\def\sub{ \ensuremath{>} }#1}} +\newcommand{\menuselection}[1]{\textsf{\def\sub{ \ensuremath{>} }#1}} % Also for consistency: spell Python "Python", not "python"! |