Mercurial > cpython-lru_cache-weakref
diff Doc/lib/libhtmllib.tex @ 7277:bf4e790bd61a legacy-trunk
Remove all \bcode / \ecode cruft; this is no longer needed. See previous
checkin of myformat.sty.
Change "\renewcommand{\indexsubitem}{(...)}" to "\setindexsubitem{(...)}"
everywhere.
Some other minor nits that I happened to come across.
| author | Fred Drake <fdrake@acm.org> |
|---|---|
| date | Fri, 13 Feb 1998 06:58:54 +0000 |
| parents | bc28a0ea6640 |
| children | 35f29b7dacf5 |
line wrap: on
line diff
--- a/Doc/lib/libhtmllib.tex Fri Feb 13 06:48:05 1998 +0000 +++ b/Doc/lib/libhtmllib.tex Fri Feb 13 06:58:54 1998 +0000 @@ -4,7 +4,7 @@ \index{HTML} \index{hypertext} -\renewcommand{\indexsubitem}{(in module htmllib)} +\setindexsubitem{(in module htmllib)} This module defines a class which can serve as a base for parsing text files formatted in the HyperText Mark-up Language (HTML). The class @@ -40,10 +40,10 @@ unprocessed data, call the \method{close()} method. For example, to parse the entire contents of a file, use: -\bcode\begin{verbatim} +\begin{verbatim} parser.feed(open('myfile.html').read()) parser.close() -\end{verbatim}\ecode +\end{verbatim} % \item The interface to define semantics for HTML tags is very simple: derive @@ -71,7 +71,7 @@ In addition to tag methods, the \class{HTMLParser} class provides some additional methods and instance variables for use within tag methods. -\renewcommand{\indexsubitem}{(HTMLParser attribute)} +\setindexsubitem{(HTMLParser attribute)} \begin{datadesc}{formatter} This is the formatter instance associated with the parser. @@ -85,7 +85,7 @@ affects the operation of \method{handle_data()} and \method{save_end()}. \end{datadesc} -\renewcommand{\indexsubitem}{(HTMLParser method)} +\setindexsubitem{(HTMLParser method)} \begin{funcdesc}{anchor_bgn}{href\, name\, type} This method is called at the start of an anchor region. The arguments
