mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
AMK's megapatch:
* \bcode, \ecode added everywhere * \label{module-foo} added everywhere * A few \seealso sections added. * Indentation fixed inside verbatim in lib*tex files
This commit is contained in:
parent
3c2a056fdd
commit
e47da0ae04
196 changed files with 1068 additions and 859 deletions
|
@ -1,4 +1,5 @@
|
|||
\section{Standard Module \sectcode{htmllib}}
|
||||
\label{module-htmllib}
|
||||
\stmodindex{htmllib}
|
||||
\index{HTML}
|
||||
\index{hypertext}
|
||||
|
@ -38,11 +39,11 @@ incomplete elements are saved in a buffer. To force processing of all
|
|||
unprocessed data, call the \code{close()} method.
|
||||
|
||||
For example, to parse the entire contents of a file, use:
|
||||
\begin{verbatim}
|
||||
\bcode\begin{verbatim}
|
||||
parser.feed(open('myfile.html').read())
|
||||
parser.close()
|
||||
\end{verbatim}
|
||||
|
||||
\end{verbatim}\ecode
|
||||
%
|
||||
\item
|
||||
The interface to define semantics for HTML tags is very simple: derive
|
||||
a class and define methods called \code{start_\var{tag}()},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue