mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-09-03 20:52:55 -05:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user