Fixed latex2html weirdness with footnotes.
diff --git a/Doc/ref/ref5.tex b/Doc/ref/ref5.tex
index b6579bc..50d0aee 100644
--- a/Doc/ref/ref5.tex
+++ b/Doc/ref/ref5.tex
@@ -718,8 +718,8 @@
\item
Mappings (dictionaries) are compared through lexicographic
-comparison of their sorted (key, value) lists.%
-\footnote{This is expensive since it requires sorting the keys first,
+comparison of their sorted (key, value) lists.\footnote{
+This is expensive since it requires sorting the keys first,
but it is about the only sensible definition. An earlier version of
Python compared dictionaries by identity only, but this caused
surprises because people expected to be able to test a dictionary for
@@ -739,8 +739,8 @@
\code{\var{x} = \var{y}[\var{i}]}.
\code{\var{x} not in \var{y}} yields the inverse truth value. The
exception \exception{TypeError} is raised when \var{y} is not a sequence,
-or when \var{y} is a string and \var{x} is not a string of length one.%
-\footnote{The latter restriction is sometimes a nuisance.}
+or when \var{y} is a string and \var{x} is not a string of length
+one.\footnote{The latter restriction is sometimes a nuisance.}
\opindex{in}
\opindex{not in}
\indexii{membership}{test}