[Python-checkins] r62690 - in doctools/trunk: CHANGES sphinx/texinputs/sphinx.sty

georg.brandl python-checkins at python.org
Sun May 4 09:47:17 CEST 2008


Author: georg.brandl
Date: Sun May  4 09:47:16 2008
New Revision: 62690

Log:
Fix footnote handling with paragraphs.


Modified:
   doctools/trunk/CHANGES
   doctools/trunk/sphinx/texinputs/sphinx.sty

Modified: doctools/trunk/CHANGES
==============================================================================
--- doctools/trunk/CHANGES	(original)
+++ doctools/trunk/CHANGES	Sun May  4 09:47:16 2008
@@ -17,6 +17,7 @@
 
 * A new directive ``tabularcolumns`` can be used to give a tabular column
   specification for LaTeX output.  Tables now use the ``tabulary`` package.
+  Literal blocks can now be placed in tables, with several caveats.
 
 * A new config value, `latex_use_parts`, can be used to enable parts in LaTeX
   documents.

Modified: doctools/trunk/sphinx/texinputs/sphinx.sty
==============================================================================
--- doctools/trunk/sphinx/texinputs/sphinx.sty	(original)
+++ doctools/trunk/sphinx/texinputs/sphinx.sty	Sun May  4 09:47:16 2008
@@ -95,11 +95,11 @@
 % work even in footnote context.
 \newif\ifpy at infootnote \py at infootnotefalse
 \let\py at oldmakefntext\@makefntext
-\def\@makefntext#1{%
-  \bgroup%
+\renewcommand{\@makefntext}[1]{%
+  \begingroup%
     \py at infootnotetrue
     \py at oldmakefntext{#1}%
-  \egroup%
+  \endgroup%
 }
 \def\py at defaultsize{%
   \ifpy at infootnote\footnotesize\else\normalsize\fi%


More information about the Python-checkins mailing list