Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ea003fc

Browse files
committed
Fixed latex2html weirdness with footnotes.
1 parent 45b0aed commit ea003fc

5 files changed

Lines changed: 42 additions & 43 deletions

File tree

Doc/lib/libmarshal.tex

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ \section{\module{marshal} ---
1111
independent of machine architecture issues (e.g., you can write a
1212
Python value to a file on a PC, transport the file to a Sun, and read
1313
it back there). Details of the format are undocumented on purpose;
14-
it may change between Python versions (although it rarely does).%
15-
\footnote{The name of this module stems from a bit of terminology used
16-
by the designers of Modula-3 (amongst others), who use the term
17-
``marshalling'' for shipping of data around in a self-contained form.
18-
Strictly speaking, ``to marshal'' means to convert some data from
19-
internal to external form (in an RPC buffer for instance) and
20-
``unmarshalling'' for the reverse process.}
14+
it may change between Python versions (although it rarely
15+
does).\footnote{The name of this module stems from a bit of
16+
terminology used by the designers of Modula-3 (amongst others), who
17+
use the term ``marshalling'' for shipping of data around in a
18+
self-contained form. Strictly speaking, ``to marshal'' means to
19+
convert some data from internal to external form (in an RPC buffer for
20+
instance) and ``unmarshalling'' for the reverse process.}
2121

2222
This is not a general ``persistency'' module. For general persistency
2323
and transfer of Python objects through RPC calls, see the modules
@@ -46,12 +46,12 @@ \section{\module{marshal} ---
4646
This particularly affects the use of very long integer literals in
4747
Python modules --- these will be accepted by the parser on such
4848
machines, but will be silently be truncated when the module is read
49-
from the \file{.pyc} instead.%
50-
\footnote{A solution would be to refuse such literals in the parser,
51-
since they are inherently non-portable. Another solution would be to
52-
let the \module{marshal} module raise an exception when an integer
53-
value would be truncated. At least one of these solutions will be
54-
implemented in a future version.}
49+
from the \file{.pyc} instead.\footnote{
50+
A solution would be to refuse such literals in the parser,
51+
since they are inherently non-portable. Another solution would be to
52+
let the \module{marshal} module raise an exception when an integer
53+
value would be truncated. At least one of these solutions will be
54+
implemented in a future version.}
5555

5656
There are functions that read/write files as well as functions
5757
operating on strings.

Doc/lib/libobjs.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ \chapter{Built-in Types, Exceptions and Functions}
66
symbol table. This table is searched last when the interpreter looks
77
up the meaning of a name, so local and global
88
user-defined names can override built-in names. Built-in types are
9-
described together here for easy reference.%
10-
\footnote{Most descriptions sorely lack explanations of the exceptions
9+
described together here for easy reference.\footnote{
10+
Most descriptions sorely lack explanations of the exceptions
1111
that may be raised --- this will be fixed in a future version of
1212
this manual.}
1313
\indexii{built-in}{types}

Doc/lib/libprofile.tex

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
1-
\chapter{The Python Profiler}
2-
\label{profile}
1+
\chapter{The Python Profiler \label{profile}}
2+
3+
\sectionauthor{James Roskind}{}
34

45
Copyright \copyright{} 1994, by InfoSeek Corporation, all rights reserved.
56
\index{InfoSeek Corporation}
67

7-
Written by James Roskind\index{Roskind, James}.%
8-
\footnote{
9-
Updated and converted to \LaTeX\ by Guido van Rossum. The references to
10-
the old profiler are left in the text, although it no longer exists.
11-
}
8+
Written by James Roskind.\footnote{
9+
Updated and converted to \LaTeX\ by Guido van Rossum. The references to
10+
the old profiler are left in the text, although it no longer exists.}
1211

1312
Permission to use, copy, modify, and distribute this Python software
1413
and its associated documentation for any purpose (subject to the
@@ -497,12 +496,11 @@ \subsection{The \module{Stats} Class}
497496
\end{methoddesc}
498497

499498
\begin{methoddesc}{ignore}{}
500-
\deprecated{1.5.1}{This is not needed in modern versions of Python.%
501-
\footnote{
502-
This was once necessary, when Python would print any unused expression
503-
result that was not \code{None}. The method is still defined for
504-
backward compatibility.
505-
}}
499+
\deprecated{1.5.1}{This is not needed in modern versions of
500+
Python.\footnote{
501+
This was once necessary, when Python would print any unused expression
502+
result that was not \code{None}. The method is still defined for
503+
backward compatibility.}}
506504
\end{methoddesc}
507505

508506

Doc/lib/libstdtypes.tex

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,9 @@ \subsection{Numeric Types \label{typesnumeric}}
188188
``smaller'' type is converted to that of the other, where plain
189189
integer is smaller than long integer is smaller than floating point is
190190
smaller than complex.
191-
Comparisons between numbers of mixed type use the same rule.%
192-
\footnote{As a consequence, the list \code{[1, 2]} is considered equal
193-
to \code{[1.0, 2.0]}, and similar for tuples.}
191+
Comparisons between numbers of mixed type use the same rule.\footnote{
192+
As a consequence, the list \code{[1, 2]} is considered equal
193+
to \code{[1.0, 2.0]}, and similar for tuples.}
194194
The functions \function{int()}, \function{long()}, \function{float()},
195195
and \function{complex()} can be used
196196
to coerce numbers to a specific type.
@@ -386,8 +386,8 @@ \subsubsection{More String Operations \label{typesseq-strings}}
386386

387387
The right argument should be a tuple with one item for each argument
388388
required by the format string; if the string requires a single
389-
argument, the right argument may also be a single non-tuple object.%
390-
\footnote{A tuple object in this case should be a singleton.}
389+
argument, the right argument may also be a single non-tuple
390+
object.\footnote{A tuple object in this case should be a singleton.}
391391
The following format characters are understood:
392392
\code{\%}, \code{c}, \code{s}, \code{i}, \code{d}, \code{u}, \code{o},
393393
\code{x}, \code{X}, \code{e}, \code{E}, \code{f}, \code{g}, \code{G}.
@@ -404,11 +404,11 @@ \subsubsection{More String Operations \label{typesseq-strings}}
404404

405405
For safety reasons, floating point precisions are clipped to 50;
406406
\code{\%f} conversions for numbers whose absolute value is over 1e25
407-
are replaced by \code{\%g} conversions.%
408-
\footnote{These numbers are fairly arbitrary. They are intended to
409-
avoid printing endless strings of meaningless digits without hampering
410-
correct use and without having to know the exact precision of floating
411-
point values on a particular machine.}
407+
are replaced by \code{\%g} conversions.\footnote{
408+
These numbers are fairly arbitrary. They are intended to
409+
avoid printing endless strings of meaningless digits without hampering
410+
correct use and without having to know the exact precision of floating
411+
point values on a particular machine.}
412412
All other errors raise exceptions.
413413

414414
If the right argument is a dictionary (or any kind of mapping), then
@@ -763,8 +763,8 @@ \subsubsection{File Objects \label{bltin-file-objects}}
763763

764764
\begin{methoddesc}[file]{readline}{\optional{size}}
765765
Read one entire line from the file. A trailing newline character is
766-
kept in the string%
767-
\footnote{The advantage of leaving the newline on is that an empty string
766+
kept in the string\footnote{
767+
The advantage of leaving the newline on is that an empty string
768768
can be returned to mean \EOF{} without being ambiguous. Another
769769
advantage is that (in cases where it might matter, e.g. if you
770770
want to make an exact copy of a file while scanning its lines)

Doc/lib/libstdwin.tex

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,10 @@ \subsection{Functions Defined in Module \module{stdwin}}
4242

4343
\begin{funcdesc}{open}{title}
4444
Open a new window whose initial title is given by the string argument.
45-
Return a window object; window object methods are described below.%
46-
\footnote{The Python version of STDWIN does not support draw procedures; all
47-
drawing requests are reported as draw events.}
45+
Return a window object; window object methods are described
46+
below.\footnote{
47+
The Python version of STDWIN does not support draw procedures;
48+
all drawing requests are reported as draw events.}
4849
\end{funcdesc}
4950

5051
\begin{funcdesc}{getevent}{}

0 commit comments

Comments
 (0)