summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2004-02-10 18:30:22 (GMT)
committerFred Drake <fdrake@acm.org>2004-02-10 18:30:22 (GMT)
commit29f5933fcba949afb00af50923a7bccc07ffd94e (patch)
tree1497917f3ff45ac0fe65c7655271d9bf45d128b7 /Doc
parentd311f1fb9b8fc9269db4ede838702b3f2d355e0d (diff)
downloadcpython-29f5933fcba949afb00af50923a7bccc07ffd94e.zip
cpython-29f5933fcba949afb00af50923a7bccc07ffd94e.tar.gz
cpython-29f5933fcba949afb00af50923a7bccc07ffd94e.tar.bz2
add support for \e to the {alltt} environment
Diffstat (limited to 'Doc')
-rw-r--r--Doc/doc/doc.tex3
-rw-r--r--Doc/texinputs/python.sty1
2 files changed, 3 insertions, 1 deletions
diff --git a/Doc/doc/doc.tex b/Doc/doc/doc.tex
index 7d84a4b..dddb9a9 100644
--- a/Doc/doc/doc.tex
+++ b/Doc/doc/doc.tex
@@ -790,7 +790,8 @@ This \UNIX\ is also followed by a space.
\begin{macrodesc}{e}{}
Produces a backslash. This is convenient in \macro{code},
- \macro{file}, and similar macros, and is only defined there. To
+ \macro{file}, and similar macros, and the \env{alltt}
+ environment, and is only defined there. To
create a backslash in ordinary text (such as the contents of the
\macro{citetitle} macro), use the standard \macro{textbackslash}
macro.
diff --git a/Doc/texinputs/python.sty b/Doc/texinputs/python.sty
index 734ffa3..770499e 100644
--- a/Doc/texinputs/python.sty
+++ b/Doc/texinputs/python.sty
@@ -236,6 +236,7 @@
% Calculate the text width for the minipage:
\setlength{\py@codewidth}{\linewidth}%
\addtolength{\py@codewidth}{-\parindent}%
+ \let\e=\textbackslash%
%
\par\indent%
\begin{minipage}[t]{\py@codewidth}%