summaryrefslogtreecommitdiffstats
path: root/Doc/lib/libsgmllib.tex
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-03-07 10:14:09 (GMT)
committerGuido van Rossum <guido@python.org>1995-03-07 10:14:09 (GMT)
commit6c4f003202bade83791c754cd94e28c1c2fb10fa (patch)
tree749a24c8924e8b4e717cf0267b1c93791f30d3f5 /Doc/lib/libsgmllib.tex
parentd01c100713ed5f4490300c16501407b86e789e5d (diff)
downloadcpython-6c4f003202bade83791c754cd94e28c1c2fb10fa.zip
cpython-6c4f003202bade83791c754cd94e28c1c2fb10fa.tar.gz
cpython-6c4f003202bade83791c754cd94e28c1c2fb10fa.tar.bz2
changes (suggested) by Soren Larsen
Diffstat (limited to 'Doc/lib/libsgmllib.tex')
-rw-r--r--Doc/lib/libsgmllib.tex8
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/lib/libsgmllib.tex b/Doc/lib/libsgmllib.tex
index 29e26c2..8abcb41 100644
--- a/Doc/lib/libsgmllib.tex
+++ b/Doc/lib/libsgmllib.tex
@@ -7,7 +7,7 @@
This module defines a class \code{SGMLParser} which serves as the
basis for parsing text files formatted in SGML (Standard Generalized
Mark-up Language). In fact, it does not provide a full SGML parser
---- it only parses SGML insofar as it is used by HTML, and module only
+--- it only parses SGML insofar as it is used by HTML, and the module only
exists as a basis for the \code{htmllib} module.
\stmodindex{htmllib}
@@ -77,8 +77,8 @@ This method is called to process an entity reference of the form
``\code{\&\var{ref};}'' where \var{ref} is an alphabetic entity
reference. It looks for \var{ref} in the instance (or class)
variable \code{entitydefs} which should give the entity's translation.
-If a translation is found, it callse the method \code{handle_data()}
-with the translation; otherwise, it callse the method
+If a translation is found, it calls the method \code{handle_data()}
+with the translation; otherwise, it calls the method
\code{unknown_entityref(\var{ref})}.
\end{funcdesc}
@@ -142,7 +142,7 @@ This method is called to process a closing tag \var{tag}.
Note that the parser maintains a stack of opening tags for which no
matching closing tag has been found yet. Only tags processed by
-\code{start_\var{tag}()} are pushed on this stack. Definition if a
+\code{start_\var{tag}()} are pushed on this stack. Definition of a
\code{end_\var{tag}()} method is optional for these tags. For tags
processed by \code{do_\var{tag}()} or by \code{unknown_tag()}, no
\code{end_\var{tag}()} method must be defined.