Use \withsubitem{} for indexing functions from other modules. This fixes

things in the index.
This commit is contained in:
Fred Drake 1998-03-12 06:44:58 +00:00
parent 0ee9f727c9
commit 371ecc0c1b
2 changed files with 4 additions and 4 deletions

View File

@ -440,10 +440,10 @@ operating system. The tuple contains 5 strings:
\var{machine})}. Some systems truncate the nodename to 8
characters or to the leading component; a better way to get the
hostname is \function{socket.gethostname()}%
\index{gethostname()@\idxcode{gethostname()} (in module socket)}
\withsubitem{(in module socket)}{\ttindex{gethostname()}}
or even
\code{socket.gethostbyaddr(socket.gethostname())}%
\index{gethostbyaddr()@\idxcode{gethostbyaddr()} (in module socket)}.
\withsubitem{(in module socket)}{\ttindex{gethostbyaddr()}}.
(Not on MS-DOS, nor on older \UNIX{} systems.)
\end{funcdesc}

View File

@ -440,10 +440,10 @@ operating system. The tuple contains 5 strings:
\var{machine})}. Some systems truncate the nodename to 8
characters or to the leading component; a better way to get the
hostname is \function{socket.gethostname()}%
\index{gethostname()@\idxcode{gethostname()} (in module socket)}
\withsubitem{(in module socket)}{\ttindex{gethostname()}}
or even
\code{socket.gethostbyaddr(socket.gethostname())}%
\index{gethostbyaddr()@\idxcode{gethostbyaddr()} (in module socket)}.
\withsubitem{(in module socket)}{\ttindex{gethostbyaddr()}}.
(Not on MS-DOS, nor on older \UNIX{} systems.)
\end{funcdesc}