From 479384e1ff19cd9987ee89c64fb33030797b44f3 Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Wed, 26 Sep 2001 18:46:36 +0000 Subject: [PATCH] Move the styling for the HTML version of \mailheader into the CSS file. In both the HTML and typeset versions of the documentation, add a colon after the name of a mail header so that it is more easily distinguished from other text. --- Doc/html/style.css | 1 + Doc/perl/python.perl | 2 +- Doc/texinputs/python.sty | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Doc/html/style.css b/Doc/html/style.css index 365566600b..b24998c7f8 100644 --- a/Doc/html/style.css +++ b/Doc/html/style.css @@ -72,6 +72,7 @@ var { font-family: times, serif; font-size: 85%; } .email { font-family: avantgarde, sans-serif; } +.mailheader { font-family: avantgarde, sans-serif; } .mimetype { font-family: avantgarde, sans-serif; } .newsgroup { font-family: avantgarde, sans-serif; } .url { font-family: avantgarde, sans-serif; } diff --git a/Doc/perl/python.perl b/Doc/perl/python.perl index 2f86de6400..13e7aac320 100644 --- a/Doc/perl/python.perl +++ b/Doc/perl/python.perl @@ -213,7 +213,7 @@ sub do_cmd_longprogramopt{ sub do_cmd_email{ return use_wrappers(@_[0], '', ''); } sub do_cmd_mailheader{ - return use_wrappers(@_[0], '', ''); } + return use_wrappers(@_[0], '', ':'); } sub do_cmd_mimetype{ return use_wrappers(@_[0], '', ''); } sub do_cmd_var{ diff --git a/Doc/texinputs/python.sty b/Doc/texinputs/python.sty index f25041bcd0..9fa56cd66e 100644 --- a/Doc/texinputs/python.sty +++ b/Doc/texinputs/python.sty @@ -833,7 +833,7 @@ \newcommand{\ctype}[1]{\texttt{#1}} % C struct or typedef name \newcommand{\cdata}[1]{\texttt{#1}} % C variable, typically global -\newcommand{\mailheader}[1]{\texttt{#1}} +\newcommand{\mailheader}[1]{{\small\textsf{#1:}}} \newcommand{\mimetype}[1]{{\small\textsf{#1}}} % The \! is a "negative thin space" in math mode. \newcommand{\regexp}[1]{% -- 2.40.0