[Python-checkins] python/dist/src/Doc/lib libhtmlparser.tex,1.2,1.3

fdrake@users.sourceforge.net fdrake@users.sourceforge.net
Thu, 17 Apr 2003 15:36:55 -0700


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1:/tmp/cvs-serv30148

Modified Files:
	libhtmlparser.tex 
Log Message:
Added documentation for the handle_pi() method, based on SF patch #662464.
Closes SF bug #659188, patch #662464.


Index: libhtmlparser.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libhtmlparser.tex,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** libhtmlparser.tex	5 Jul 2001 16:34:36 -0000	1.2
--- libhtmlparser.tex	17 Apr 2003 22:36:52 -0000	1.3
***************
*** 124,129 ****
  \end{methoddesc}
  
  
! \subsection{Example HTML Parser \label{htmlparser-example}}
  
  As a basic example, below is a very basic HTML parser that uses the
--- 124,143 ----
  \end{methoddesc}
  
+ \begin{methoddesc}{handle_pi}{data}
+ Method called when a processing instruction is encountered.  The
+ \var{data} parameter will contain the entire processing instruction.
+ For example, for the processing instruction \code{<?proc color='red'>},
+ this method would be called as \code{handle_pi("proc color='red'")}.  It
+ is intended to be overridden by a derived class; the base class
+ implementation does nothing.
  
! \note{The \class{HTMLParser} class uses the SGML syntactic rules for
! processing instruction.  An XHTML processing instruction using the
! trailing \character{?} will cause the \character{?} to be included in
! \var{data}.}
! \end{methoddesc}
! 
! 
! \subsection{Example HTML Parser Application \label{htmlparser-example}}
  
  As a basic example, below is a very basic HTML parser that uses the