Commits

georg.brandl  committed ab031a9

Fix footnote handling with paragraphs.

  • Participants
  • Parent commits 3d8e4e3

Comments (0)

Files changed (2)

 
 * 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.

File sphinx/texinputs/sphinx.sty

 % work even in footnote context.
 \newif\ifpy@infootnote \py@infootnotefalse
 \let\py@oldmakefntext\@makefntext
-\def\@makefntext#1{%
-  \bgroup%
+\renewcommand{\@makefntext}[1]{%
+  \begingroup%
     \py@infootnotetrue
     \py@oldmakefntext{#1}%
-  \egroup%
+  \endgroup%
 }
 \def\py@defaultsize{%
   \ifpy@infootnote\footnotesize\else\normalsize\fi%