Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
275c10ba
Commit
275c10ba
authored
Aug 03, 2001
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Define the \mailheader macro and document conventions for using it.
parent
e1816849
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
0 deletions
+14
-0
Doc/doc/doc.tex
Doc/doc/doc.tex
+11
-0
Doc/perl/python.perl
Doc/perl/python.perl
+2
-0
Doc/texinputs/python.sty
Doc/texinputs/python.sty
+1
-0
No files found.
Doc/doc/doc.tex
View file @
275c10ba
...
...
@@ -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}
...
...
Doc/perl/python.perl
View file @
275c10ba
...
...
@@ -212,6 +212,8 @@ sub do_cmd_longprogramopt{
return
use_wrappers
(
@_
[
0
],
'
<b class="programopt">---
',
'
</b>
');
}
sub
do_cmd_email
{
return
use_wrappers
(
@_
[
0
],
'
<span class="email">
',
'
</span>
');
}
sub
do_cmd_mailheader
{
return
use_wrappers
(
@_
[
0
],
'
<tt class="mimeheader">
',
'
</tt>
');
}
sub
do_cmd_mimetype
{
return
use_wrappers
(
@_
[
0
],
'
<span class="mimetype">
',
'
</span>
');
}
sub
do_cmd_var
{
...
...
Doc/texinputs/python.sty
View file @
275c10ba
...
...
@@ -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]
{
%
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment