From 7eac0cb04c35529f17b797fa6e5a0872ff1a6a86 Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Fri, 3 Aug 2001 18:36:17 +0000 Subject: Define the \mailheader macro and document conventions for using it. --- Doc/doc/doc.tex | 11 +++++++++++ Doc/perl/python.perl | 2 ++ Doc/texinputs/python.sty | 1 + 3 files changed, 14 insertions(+) diff --git a/Doc/doc/doc.tex b/Doc/doc/doc.tex index 9cf1d77..afb59f7 100644 --- a/Doc/doc/doc.tex +++ b/Doc/doc/doc.tex @@ -834,6 +834,17 @@ This \UNIX\ is also followed by a space. used. \end{macrodesc} + \begin{macrodesc}{mailheader}{\p{name}} + The name of an \rfc{822}-style mail header. This markup does + not imply that the header is being used in an email message, but + can be used to refer to any header of the same ``style.'' This + is also used for headers defined by the various MIME + specifications. The header name should be entered in the same + way it would normally be found in practice, with the + camel-casing conventions being preferred where there is more + than one common usage. For example: \mailheader{Content-Type}. + \end{macrodesc} + \begin{macrodesc}{mimetype}{\p{name}} The name of a MIME type. \end{macrodesc} diff --git a/Doc/perl/python.perl b/Doc/perl/python.perl index 91c7632..dabab66 100644 --- a/Doc/perl/python.perl +++ b/Doc/perl/python.perl @@ -212,6 +212,8 @@ sub do_cmd_longprogramopt{ return use_wrappers(@_[0], '---', ''); } sub do_cmd_email{ return use_wrappers(@_[0], '', ''); } +sub do_cmd_mailheader{ + 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 498fc3b..6b892cb 100644 --- a/Doc/texinputs/python.sty +++ b/Doc/texinputs/python.sty @@ -833,6 +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{\mimetype}[1]{{\small\textsf{#1}}} % The \! is a "negative thin space" in math mode. \newcommand{\regexp}[1]{% -- cgit v0.12