Skip to content

Commit 479384e

Browse files
committed
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.
1 parent 203d91a commit 479384e

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

Doc/html/style.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ var { font-family: times, serif;
7272
font-size: 85%; }
7373

7474
.email { font-family: avantgarde, sans-serif; }
75+
.mailheader { font-family: avantgarde, sans-serif; }
7576
.mimetype { font-family: avantgarde, sans-serif; }
7677
.newsgroup { font-family: avantgarde, sans-serif; }
7778
.url { font-family: avantgarde, sans-serif; }

Doc/perl/python.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ sub do_cmd_longprogramopt{
213213
sub do_cmd_email{
214214
return use_wrappers(@_[0], '<span class="email">', '</span>'); }
215215
sub do_cmd_mailheader{
216-
return use_wrappers(@_[0], '<tt class="mimeheader">', '</tt>'); }
216+
return use_wrappers(@_[0], '<span class="mailheader">', ':</span>'); }
217217
sub do_cmd_mimetype{
218218
return use_wrappers(@_[0], '<span class="mimetype">', '</span>'); }
219219
sub do_cmd_var{

Doc/texinputs/python.sty

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,7 @@
833833
\newcommand{\ctype}[1]{\texttt{#1}} % C struct or typedef name
834834
\newcommand{\cdata}[1]{\texttt{#1}} % C variable, typically global
835835

836-
\newcommand{\mailheader}[1]{\texttt{#1}}
836+
\newcommand{\mailheader}[1]{{\small\textsf{#1:}}}
837837
\newcommand{\mimetype}[1]{{\small\textsf{#1}}}
838838
% The \! is a "negative thin space" in math mode.
839839
\newcommand{\regexp}[1]{%

0 commit comments

Comments
 (0)