summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1998-02-16 21:21:13 (GMT)
committerFred Drake <fdrake@acm.org>1998-02-16 21:21:13 (GMT)
commit2705e801d98995bdb0e404fd4da56529ff395dcd (patch)
tree57181867951cec16e033acef8f44e298c505ca01 /Doc
parentb0f77d65db357ea801543f7562a534513015c848 (diff)
downloadcpython-2705e801d98995bdb0e404fd4da56529ff395dcd.zip
cpython-2705e801d98995bdb0e404fd4da56529ff395dcd.tar.gz
cpython-2705e801d98995bdb0e404fd4da56529ff395dcd.tar.bz2
For the lists which describe the regular expression syntax, increase the
width available so we don't run into the left page margin.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/libre.tex11
-rw-r--r--Doc/libre.tex11
2 files changed, 14 insertions, 8 deletions
diff --git a/Doc/lib/libre.tex b/Doc/lib/libre.tex
index 55125ec..8b0d681 100644
--- a/Doc/lib/libre.tex
+++ b/Doc/lib/libre.tex
@@ -57,7 +57,10 @@ characters either stand for classes of ordinary characters, or affect
how the regular expressions around them are interpreted.
The special characters are:
-\begin{itemize}
+% define these since they're used twice:
+\newcommand{\MyLeftMargin}{0.7in}
+\newcommand{\MyLabelWidth}{0.65in}
+\begin{list}{}{\leftmargin \MyLeftMargin \labelwidth \MyLabelWidth}
\item[\code{.}] (Dot.) In the default mode, this matches any
character except a newline. If the \code{DOTALL} flag has been
specified, this matches any character including a newline.
@@ -192,14 +195,14 @@ is a negative lookahead assertion. For example,
\code{Isaac (?!Asimov)} will match 'Isaac~' only if it's \emph{not}
followed by 'Asimov'.
-\end{itemize}
+\end{list}
The special sequences consist of '\code{\e}' and a character from the
list below. If the ordinary character is not on the list, then the
resulting RE will match the second character. For example,
\code{\e\$} matches the character '\$'.
-\begin{itemize}
+\begin{list}{}{\leftmargin \MyLeftMargin \labelwidth \MyLabelWidth}
%
\item[\code{\e \var{number}}] Matches the contents of the group of the
@@ -251,7 +254,7 @@ for the current locale.
\item[\code{\e \e}] Matches a literal backslash.
-\end{itemize}
+\end{list}
\subsection{Module Contents}
\nodename{Contents of Module re}
diff --git a/Doc/libre.tex b/Doc/libre.tex
index 55125ec..8b0d681 100644
--- a/Doc/libre.tex
+++ b/Doc/libre.tex
@@ -57,7 +57,10 @@ characters either stand for classes of ordinary characters, or affect
how the regular expressions around them are interpreted.
The special characters are:
-\begin{itemize}
+% define these since they're used twice:
+\newcommand{\MyLeftMargin}{0.7in}
+\newcommand{\MyLabelWidth}{0.65in}
+\begin{list}{}{\leftmargin \MyLeftMargin \labelwidth \MyLabelWidth}
\item[\code{.}] (Dot.) In the default mode, this matches any
character except a newline. If the \code{DOTALL} flag has been
specified, this matches any character including a newline.
@@ -192,14 +195,14 @@ is a negative lookahead assertion. For example,
\code{Isaac (?!Asimov)} will match 'Isaac~' only if it's \emph{not}
followed by 'Asimov'.
-\end{itemize}
+\end{list}
The special sequences consist of '\code{\e}' and a character from the
list below. If the ordinary character is not on the list, then the
resulting RE will match the second character. For example,
\code{\e\$} matches the character '\$'.
-\begin{itemize}
+\begin{list}{}{\leftmargin \MyLeftMargin \labelwidth \MyLabelWidth}
%
\item[\code{\e \var{number}}] Matches the contents of the group of the
@@ -251,7 +254,7 @@ for the current locale.
\item[\code{\e \e}] Matches a literal backslash.
-\end{itemize}
+\end{list}
\subsection{Module Contents}
\nodename{Contents of Module re}