Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3a5ec57

Browse files
committed
Clean up some of the markup here -- be more consistent in the use of
semantic labels instead of presentational markup.
1 parent a7d608d commit 3a5ec57

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

Doc/lib/libmailcap.tex

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ \section{\module{mailcap} ---
2525
filename\optional{, plist}}}}
2626
Return a 2-tuple; the first element is a string containing the command
2727
line 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
2929
the mailcap entry for a given MIME type. If no matching MIME
3030
type 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
4646
value 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
4949
named parameters like \code{\%\{foo\}}, which will be replaced by the
5050
value of the parameter named 'foo'. For example, if the command line
5151
\samp{showpartial \%\{id\}\ \%\{number\}\ \%\{total\}}
5252
was 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
5858
window 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}{}
6464
Returns 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()}
6666
function. An entry is stored as a list of dictionaries, but it
6767
shouldn't be necessary to know the details of this representation.
6868

0 commit comments

Comments
 (0)