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

Skip to content

Commit d24c767

Browse files
committed
A variety of markup-level adjustments.
1 parent 46f681c commit d24c767

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

Doc/lib/libcodecs.tex

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -899,11 +899,11 @@ \subsection{\module{encodings.idna} ---
899899
This module implements \rfc{3490} (Internationalized Domain Names in
900900
Applications) and \rfc{3492} (Nameprep: A Stringprep Profile for
901901
Internationalized Domain Names (IDN)). It builds upon the
902-
\code{punycode} encoding and \module{stringprep}.
902+
\code{punycode} encoding and \refmodule{stringprep}.
903903

904904
These RFCs together define a protocol to support non-\ASCII{} characters
905905
in domain names. A domain name containing non-\ASCII{} characters (such
906-
as ``www.Alliancefran\c{c}aise.nu'') is converted into an
906+
as ``www.Alliancefran\c caise.nu'') is converted into an
907907
\ASCII-compatible encoding (ACE, such as
908908
``www.xn--alliancefranaise-npb.nu''). The ACE form of the domain name
909909
is then used in all places where arbitrary characters are not allowed
@@ -915,13 +915,13 @@ \subsection{\module{encodings.idna} ---
915915

916916
Python supports this conversion in several ways: The \code{idna} codec
917917
allows to convert between Unicode and the ACE. Furthermore, the
918-
\module{socket} module transparently converts Unicode host names to
918+
\refmodule{socket} module transparently converts Unicode host names to
919919
ACE, so that applications need not be concerned about converting host
920920
names themselves when they pass them to the socket module. On top of
921921
that, modules that have host names as function parameters, such as
922-
\module{httplib} and \module{ftplib}, accept Unicode host names
923-
(\module{httplib} then also transparently sends an IDNA hostname in
924-
the \code{Host:} field if it sends that field at all).
922+
\refmodule{httplib} and \refmodule{ftplib}, accept Unicode host names
923+
(\refmodule{httplib} then also transparently sends an IDNA hostname in
924+
the \mailheader{Host} field if it sends that field at all).
925925

926926
When receiving host names from the wire (such as in reverse name
927927
lookup), no automatic conversion to Unicode is performed: Applications

0 commit comments

Comments
 (0)