Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
d01c1007
Commit
d01c1007
authored
Mar 07, 1995
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clarified expanding %xx and form for print_form
parent
85c4ff29
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
18 deletions
+20
-18
Doc/lib/libhtmllib.tex
Doc/lib/libhtmllib.tex
+10
-9
Doc/libhtmllib.tex
Doc/libhtmllib.tex
+10
-9
No files found.
Doc/lib/libhtmllib.tex
View file @
d01c1007
...
...
@@ -27,7 +27,7 @@ The following is a summary of the interface defined by
\item
The interface to feed data to an instance is through the
\code
{
feed()
}
method, which takes a string argument. This can be called with as
little or as much text at a time. When the data contains complete
little or as much text at a time
as desired
. When the data contains complete
HTML elements, these are processed immediately; incomplete elements
are saved in a buffer. To force processing of all unprocessed data,
call the
\code
{
close()
}
method.
...
...
@@ -92,7 +92,7 @@ Instances of \code{CollectingParser} (and thus also instances of
instance variables:
\begin{datadesc}
{
anchornames
}
A list of the values
i
f the
\code
{
NAME
}
attributes of the
\code
{
<A>
}
A list of the values
o
f the
\code
{
NAME
}
attributes of the
\code
{
<A>
}
tags encountered.
\end{datadesc}
...
...
@@ -102,12 +102,12 @@ encountered.
\end{datadesc}
\begin{datadesc}
{
anchortypes
}
A list of the values
i
f the
\code
{
TYPE
}
attributes of the
\code
{
<A>
}
A list of the values
o
f the
\code
{
TYPE
}
attributes of the
\code
{
<A>
}
tags encountered.
\end{datadesc}
\begin{datadesc}
{
inanchor
}
Outside an
\code
{
<A>...</A>
}
tag pair, this is zero.
i
nside such a
Outside an
\code
{
<A>...</A>
}
tag pair, this is zero.
I
nside such a
pair, it is a unique integer, which is positive if the anchor has a
\code
{
HREF
}
attribute, negative if it hasn't. Its absolute value is
one more than the index of the anchor in the
\code
{
anchors
}
,
...
...
@@ -131,7 +131,7 @@ The text inside the last \code{<TITLE>...</TITLE>} tag pair, or
The
\code
{
anchors
}
,
\code
{
anchornames
}
and
\code
{
anchortypes
}
lists
are ``parallel arrays'': items in these lists with the same index
pertain to the same anchor. Missing attributes default to the empty
string. Anchors with neither a
\code
{
HREF
}
no
t
a
\code
{
NAME
}
string. Anchors with neither a
\code
{
HREF
}
no
r
a
\code
{
NAME
}
attribute are not entered in these lists at all.
The module also defines a number of style sheet classes. These should
...
...
@@ -237,7 +237,7 @@ Require at least \var{n} blank lines before the next line. Implies
\end{funcdesc}
\begin{funcdesc}
{
addword
}{
word
\,
space
}
Add a var
{
word
}
to the current paragraph, followed by
\var
{
space
}
Add a
\
var
{
word
}
to the current paragraph, followed by
\var
{
space
}
spaces.
\end{funcdesc}
...
...
@@ -264,8 +264,9 @@ End an anchor. The \var{id} parameter is the value of the parser's
\code
{
inanchor
}
attribute.
\end{funcdesc}
A sample formatters implementation can be found in the module
\code
{
fmt
}
, which in turn uses the module
\code
{
Para
}
. These are
currently not intended as a
A sample formatter implementation can be found in the module
\code
{
fmt
}
, which in turn uses the module
\code
{
Para
}
. These modules are
not intended as standard library modules; they are available as an
example of how to write a formatter.
\ttindex
{
fmt
}
\ttindex
{
Para
}
Doc/libhtmllib.tex
View file @
d01c1007
...
...
@@ -27,7 +27,7 @@ The following is a summary of the interface defined by
\item
The interface to feed data to an instance is through the
\code
{
feed()
}
method, which takes a string argument. This can be called with as
little or as much text at a time. When the data contains complete
little or as much text at a time
as desired
. When the data contains complete
HTML elements, these are processed immediately; incomplete elements
are saved in a buffer. To force processing of all unprocessed data,
call the
\code
{
close()
}
method.
...
...
@@ -92,7 +92,7 @@ Instances of \code{CollectingParser} (and thus also instances of
instance variables:
\begin{datadesc}
{
anchornames
}
A list of the values
i
f the
\code
{
NAME
}
attributes of the
\code
{
<A>
}
A list of the values
o
f the
\code
{
NAME
}
attributes of the
\code
{
<A>
}
tags encountered.
\end{datadesc}
...
...
@@ -102,12 +102,12 @@ encountered.
\end{datadesc}
\begin{datadesc}
{
anchortypes
}
A list of the values
i
f the
\code
{
TYPE
}
attributes of the
\code
{
<A>
}
A list of the values
o
f the
\code
{
TYPE
}
attributes of the
\code
{
<A>
}
tags encountered.
\end{datadesc}
\begin{datadesc}
{
inanchor
}
Outside an
\code
{
<A>...</A>
}
tag pair, this is zero.
i
nside such a
Outside an
\code
{
<A>...</A>
}
tag pair, this is zero.
I
nside such a
pair, it is a unique integer, which is positive if the anchor has a
\code
{
HREF
}
attribute, negative if it hasn't. Its absolute value is
one more than the index of the anchor in the
\code
{
anchors
}
,
...
...
@@ -131,7 +131,7 @@ The text inside the last \code{<TITLE>...</TITLE>} tag pair, or
The
\code
{
anchors
}
,
\code
{
anchornames
}
and
\code
{
anchortypes
}
lists
are ``parallel arrays'': items in these lists with the same index
pertain to the same anchor. Missing attributes default to the empty
string. Anchors with neither a
\code
{
HREF
}
no
t
a
\code
{
NAME
}
string. Anchors with neither a
\code
{
HREF
}
no
r
a
\code
{
NAME
}
attribute are not entered in these lists at all.
The module also defines a number of style sheet classes. These should
...
...
@@ -237,7 +237,7 @@ Require at least \var{n} blank lines before the next line. Implies
\end{funcdesc}
\begin{funcdesc}
{
addword
}{
word
\,
space
}
Add a var
{
word
}
to the current paragraph, followed by
\var
{
space
}
Add a
\
var
{
word
}
to the current paragraph, followed by
\var
{
space
}
spaces.
\end{funcdesc}
...
...
@@ -264,8 +264,9 @@ End an anchor. The \var{id} parameter is the value of the parser's
\code
{
inanchor
}
attribute.
\end{funcdesc}
A sample formatters implementation can be found in the module
\code
{
fmt
}
, which in turn uses the module
\code
{
Para
}
. These are
currently not intended as a
A sample formatter implementation can be found in the module
\code
{
fmt
}
, which in turn uses the module
\code
{
Para
}
. These modules are
not intended as standard library modules; they are available as an
example of how to write a formatter.
\ttindex
{
fmt
}
\ttindex
{
Para
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment