@@ -17,19 +17,19 @@ \section{Standard Module \sectcode{sgmllib}}
1717
1818\item
1919Opening and closing tags of the form
20- `` \code {<\var {tag} \var {attr}="\var {value}" ...>}'' and
21- `` \code {</\var {tag}>}'' , respectively.
20+ \samp {<\var {tag} \var {attr}="\var {value}" ...>} and
21+ \samp {</\var {tag}>}, respectively.
2222
2323\item
24- Numeric character references of the form `` \code {\&\# \var {name};}'' .
24+ Numeric character references of the form \samp {\&\# \var {name};}.
2525
2626\item
27- Entity references of the form `` \code {\& \var {name};}'' .
27+ Entity references of the form \samp {\& \var {name};}.
2828
2929\item
30- SGML comments of the form `` \code {<!--\var {text}-->}'' . Note that
30+ SGML comments of the form \samp {<!--\var {text}-->}. Note that
3131spaces, tabs, and newlines are allowed between the trailing
32- `` \code {>}'' and the immediately preceeding `` \code {--}'' .
32+ \samp {>} and the immediately preceeding \samp {--}.
3333
3434\end {itemize }
3535
@@ -102,7 +102,7 @@ \section{Standard Module \sectcode{sgmllib}}
102102
103103\begin {funcdesc }{handle_charref}{ref}
104104This method is called to process a character reference of the form
105- `` \code {\&\# \var {ref};}'' . In the base implementation, \var {ref} must
105+ \samp {\&\# \var {ref};}. In the base implementation, \var {ref} must
106106be a decimal number in the
107107range 0-255. It translates the character to \ASCII {} and calls the
108108method \code {handle_data()} with the character as argument. If
@@ -114,7 +114,7 @@ \section{Standard Module \sectcode{sgmllib}}
114114
115115\begin {funcdesc }{handle_entityref}{ref}
116116This method is called to process a general entity reference of the form
117- `` \code {\& \var {ref};}'' where \var {ref} is an general entity
117+ \samp {\& \var {ref};} where \var {ref} is an general entity
118118reference. It looks for \var {ref} in the instance (or class)
119119variable \code {entitydefs} which should be a mapping from entity names
120120to corresponding translations.
@@ -128,8 +128,8 @@ \section{Standard Module \sectcode{sgmllib}}
128128\begin {funcdesc }{handle_comment}{comment}
129129This method is called when a comment is encountered. The
130130\code {comment} argument is a string containing the text between the
131- `` \code {<!--}'' and `` \code {-->}'' delimiters, but not the delimiters
132- themselves. For example, the comment `` \code {<!--text-->}'' will
131+ \samp {<!--} and \samp {-->} delimiters, but not the delimiters
132+ themselves. For example, the comment \samp {<!--text-->} will
133133cause this method to be called with the argument \code {'text'}. The
134134default method does nothing.
135135\end {funcdesc }
@@ -169,21 +169,21 @@ \section{Standard Module \sectcode{sgmllib}}
169169independent; the \var {tag} occurring in method names must be in lower
170170case:
171171
172- \begin {funcdesc }{start_\var {tag}}{attributes}
172+ \begin {funcdescni }{start_\var {tag}}{attributes}
173173This method is called to process an opening tag \var {tag}. It has
174174preference over \code {do_\var {tag}()}. The \var {attributes} argument
175175has the same meaning as described for \code {handle_starttag()} above.
176- \end {funcdesc }
176+ \end {funcdescni }
177177
178- \begin {funcdesc }{do_\var {tag}}{attributes}
178+ \begin {funcdescni }{do_\var {tag}}{attributes}
179179This method is called to process an opening tag \var {tag} that does
180180not come with a matching closing tag. The \var {attributes} argument
181181has the same meaning as described for \code {handle_starttag()} above.
182- \end {funcdesc }
182+ \end {funcdescni }
183183
184- \begin {funcdesc }{end_\var {tag}}{}
184+ \begin {funcdescni }{end_\var {tag}}{}
185185This method is called to process a closing tag \var {tag}.
186- \end {funcdesc }
186+ \end {funcdescni }
187187
188188Note that the parser maintains a stack of open elements for which no
189189end tag has been found yet. Only tags processed by
0 commit comments