diff options
| author | georg.brandl <devnull@localhost> | 2008-05-04 07:43:09 +0000 |
|---|---|---|
| committer | georg.brandl <devnull@localhost> | 2008-05-04 07:43:09 +0000 |
| commit | be6009cdd60560dfd9a023c6a89b5f2abe86c98b (patch) | |
| tree | b178faf2eb1020a65908acf7f7bcb14fa6307d9c /sphinx/texinputs | |
| parent | b7c37b073048136f5686e1a31deeef7323b57047 (diff) | |
| download | sphinx-be6009cdd60560dfd9a023c6a89b5f2abe86c98b.tar.gz | |
Fix handling of Verbatim within tables.
Diffstat (limited to 'sphinx/texinputs')
| -rw-r--r-- | sphinx/texinputs/sphinx.sty | 10 |
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% } |
