summaryrefslogtreecommitdiff
path: root/sphinx/texinputs
diff options
context:
space:
mode:
authorgeorg.brandl <devnull@localhost>2008-05-04 07:43:09 +0000
committergeorg.brandl <devnull@localhost>2008-05-04 07:43:09 +0000
commitbe6009cdd60560dfd9a023c6a89b5f2abe86c98b (patch)
treeb178faf2eb1020a65908acf7f7bcb14fa6307d9c /sphinx/texinputs
parentb7c37b073048136f5686e1a31deeef7323b57047 (diff)
downloadsphinx-be6009cdd60560dfd9a023c6a89b5f2abe86c98b.tar.gz
Fix handling of Verbatim within tables.
Diffstat (limited to 'sphinx/texinputs')
-rw-r--r--sphinx/texinputs/sphinx.sty10
1 files changed, 5 insertions, 5 deletions
diff --git a/sphinx/texinputs/sphinx.sty b/sphinx/texinputs/sphinx.sty
index 7dacb904..a4845a01 100644
--- a/sphinx/texinputs/sphinx.sty
+++ b/sphinx/texinputs/sphinx.sty
@@ -154,9 +154,9 @@
\newcommand{\py@modulebadkey}{{--just-some-junk--}}
% Redefine the Verbatim environment to allow border and background colors.
-%
-\let\py@OldVerbatim=\Verbatim
-\let\py@OldEndVerbatim=\endVerbatim
+% The original environment is still used for verbatims within tables.
+\let\OriginalVerbatim=\Verbatim
+\let\endOriginalVerbatim=\endVerbatim
% Play with vpsace to be able to keep the indentation.
\newlength\distancetoright
@@ -188,10 +188,10 @@
}%
\item\MakeFramed {\FrameRestore}%
\small%
- \py@OldVerbatim[#1]%
+ \OriginalVerbatim[#1]%
}
\renewcommand{\endVerbatim}{%
- \py@OldEndVerbatim%
+ \endOriginalVerbatim%
\endMakeFramed%
\endlist%
}