Fix #2523: LaTeX raises error for labeled code-block

Was caused because produced latex source may not have blank line before
\begin{Verbatim}. Solved by adding a \par to sphinx.sty.
This commit is contained in:
jfbu
2016-05-03 14:49:52 +02:00
parent 1b147f1b2f
commit e093846dcc
+2
View File
@@ -275,6 +275,8 @@
}
\renewcommand{\Verbatim}[1][1]{%
% quit horizontal mode if we are still in a paragraph
\par
% list starts new par, but we don't want it to be set apart vertically
\parskip\z@skip
% first, let's check if there is a caption