diff --git a/sphinx/texinputs/sphinx.sty b/sphinx/texinputs/sphinx.sty index 68eaf01bd99..86fdf4db04a 100644 --- a/sphinx/texinputs/sphinx.sty +++ b/sphinx/texinputs/sphinx.sty @@ -334,6 +334,8 @@ }% % go around fancyvrb's check of @currenvir (for case of minipage below) \renewcommand*{\VerbatimEnvironment}{\gdef\FV@EnvironName{Verbatim}}% + % go around fancyvrb's check of current list depth + \def\@toodeep {\advance\@listdepth\@ne}% % Allow breaks at special characters using \PYG... macros. \Sphinxbreaksatspecials % The list environment is needed to control perfectly the vertical space.