summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2004-02-09 20:58:08 (GMT)
committerFred Drake <fdrake@acm.org>2004-02-09 20:58:08 (GMT)
commit52feb81932f729f487d3955878693496a3dee7ff (patch)
treea2119ee711622309e1b57d8e7dc9a37ac10a1363
parentfd0e494c988f6648abda4989190a9a8811f65537 (diff)
downloadcpython-52feb81932f729f487d3955878693496a3dee7ff.zip
cpython-52feb81932f729f487d3955878693496a3dee7ff.tar.gz
cpython-52feb81932f729f487d3955878693496a3dee7ff.tar.bz2
support \e in \file and \filenq; this is useful for Windows paths
-rw-r--r--Doc/texinputs/python.sty2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/texinputs/python.sty b/Doc/texinputs/python.sty
index 0e69587e..734ffa3 100644
--- a/Doc/texinputs/python.sty
+++ b/Doc/texinputs/python.sty
@@ -849,7 +849,7 @@
\newcommand{\strong}[1]{{\bf #1}}
% let's experiment with a new font:
\newcommand{\file}[1]{`\filenq{#1}'}
-\newcommand{\filenq}[1]{{\py@smallsize\textsf{#1}}}
+\newcommand{\filenq}[1]{{\py@smallsize\textsf{\let\e=\textbackslash#1}}}
% Use this def/redef approach for \url{} since hyperref defined this already,
% but only if we actually used hyperref: