Issue #18761: Improved cross-references in email documentation.
diff --git a/Doc/library/email.util.rst b/Doc/library/email.util.rst
index 744f1da..26f1919 100644
--- a/Doc/library/email.util.rst
+++ b/Doc/library/email.util.rst
@@ -41,8 +41,8 @@
This method returns a list of 2-tuples of the form returned by ``parseaddr()``.
*fieldvalues* is a sequence of header field values as might be returned by
- :meth:`Message.get_all`. Here's a simple example that gets all the recipients
- of a message::
+ :meth:`Message.get_all <email.message.Message.get_all>`. Here's a simple
+ example that gets all the recipients of a message::
from email.utils import getaddresses
@@ -130,7 +130,8 @@
.. function:: collapse_rfc2231_value(value[, errors[, fallback_charset]])
When a header parameter is encoded in :rfc:`2231` format,
- :meth:`Message.get_param` may return a 3-tuple containing the character set,
+ :meth:`Message.get_param <email.message.Message.get_param>` may return a
+ 3-tuple containing the character set,
language, and value. :func:`collapse_rfc2231_value` turns this into a unicode
string. Optional *errors* is passed to the *errors* argument of the built-in
:func:`unicode` function; it defaults to ``replace``. Optional
@@ -152,11 +153,12 @@
.. versionchanged:: 2.4
The :func:`decode` function has been removed; use the
- :meth:`Header.decode_header` method instead.
+ :meth:`Header.decode_header <email.header.Header.decode_header>` method
+ instead.
.. versionchanged:: 2.4
- The :func:`encode` function has been removed; use the :meth:`Header.encode`
- method instead.
+ The :func:`encode` function has been removed; use the :meth:`Header.encode
+ <email.header.Header.encode>` method instead.
.. rubric:: Footnotes