@@ -25,7 +25,7 @@ \section{\module{mailcap} ---
2525 filename\optional {, plist}}}}
2626Return a 2-tuple; the first element is a string containing the command
2727line to be executed
28- (which can be passed to \code {os.system()}), and the second element is
28+ (which can be passed to \function {os.system()}), and the second element is
2929the mailcap entry for a given MIME type. If no matching MIME
3030type can be found, \code {(None, None)} is returned.
3131
@@ -44,25 +44,25 @@ \section{\module{mailcap} ---
4444
4545\var {plist} can be a list containing named parameters; the default
4646value is simply an empty list. Each entry in the list must be a
47- string containing the parameter name, an equals sign (\code {=}), and the
48- parameter's value. Mailcap entries can contain
47+ string containing the parameter name, an equals sign (\character {=}),
48+ and the parameter's value. Mailcap entries can contain
4949named parameters like \code {\%\{ foo\} }, which will be replaced by the
5050value of the parameter named 'foo' . For example, if the command line
5151\samp {showpartial \%\{ id\}\ \%\{ number\}\ \%\{ total\} }
5252was in a mailcap file, and \var {plist} was set to \code {['id=1',
5353'number=2' , 'total=3' ]}, the resulting command line would be
54- \code {" showpartial 1 2 3" }.
54+ \code {' showpartial 1 2 3' }.
5555
56- In a mailcap file, the " test" field can optionally be specified to
57- test some external condition (e.g., the machine architecture, or the
56+ In a mailcap file, the `` test'' field can optionally be specified to
57+ test some external condition (such as the machine architecture, or the
5858window system in use) to determine whether or not the mailcap line
59- applies. \code {findmatch()} will automatically check such conditions
60- and skip the entry if the check fails.
59+ applies. \function {findmatch()} will automatically check such
60+ conditions and skip the entry if the check fails.
6161\end {funcdesc }
6262
6363\begin {funcdesc }{getcaps}{}
6464Returns a dictionary mapping MIME types to a list of mailcap file
65- entries. This dictionary must be passed to the \code {findmatch()}
65+ entries. This dictionary must be passed to the \function {findmatch()}
6666function. An entry is stored as a list of dictionaries, but it
6767shouldn't be necessary to know the details of this representation.
6868
0 commit comments