Fix #2172: Dysfunctional admonition \py@lightbox in sphinx.sty

This commit is contained in:
Takeshi KOMIYA 2016-01-09 09:45:32 +09:00
parent 386a74a0ee
commit 119790cffb
2 changed files with 10 additions and 10 deletions

View File

@ -42,6 +42,7 @@ Bugs fixed
* #1610: Sphinx crashes in japanese indexing in some systems
* Fix Sphinx crashes if mecab initialization failed
* #2160: Fix broken TOC of PDFs if section includes an image
* #2172: Fix dysfunctional admonition \py@lightbox in sphinx.sty
Release 1.3.3 (released Dec 2, 2015)
====================================

View File

@ -269,16 +269,15 @@
\fbox{\TheSbox}
}
\newcommand{\py@lightbox}{{%
\setlength\parskip{0pt}\par
\noindent\rule[0ex]{\linewidth}{0.5pt}%
\par\noindent\vspace{-0.5ex}%
}}
\newcommand{\py@endlightbox}{{%
\setlength{\parskip}{0pt}%
\par\noindent\rule[0.5ex]{\linewidth}{0.5pt}%
\par\vspace{-0.5ex}%
}}
\newcommand{\py@lightbox}{%
\par\allowbreak
\noindent\rule{\linewidth}{0.5pt}\par\nobreak
{\parskip\z@skip\noindent}%
}
\newcommand{\py@endlightbox}{%
\par\nobreak
{\parskip\z@skip\noindent\rule[.4\baselineskip]{\linewidth}{0.5pt}}\par
}
% Some are quite plain:
\newcommand{\py@noticestart@note}{\py@lightbox}