Merge pull request #8797 from jfbu/latex_sphinxsafeincludegraphics_corebug

Latex sphinxsafeincludegraphics corebug
This commit is contained in:
Takeshi KOMIYA
2021-01-31 18:10:50 +09:00
committed by GitHub
2 changed files with 3 additions and 1 deletions

View File

@@ -19,6 +19,8 @@ Bugs fixed
* #8655: autodoc: Failed to generate document if target module contains an
object that raises an exception on ``hasattr()``
* C, ``expr`` role should start symbol lookup in the current scope.
* #8796: LaTeX: potentially critical low level TeX coding mistake has gone
unnoticed so far
Testing
--------

View File

@@ -737,7 +737,7 @@
\AtBeginDocument{\spx@image@maxheight\textheight}
% box scratch register
\newdimen\spx@image@box
\newbox\spx@image@box
\newcommand*{\sphinxsafeincludegraphics}[2][]{%
% #1 contains possibly width=, height=, but no scale= since 1.8.4
\setbox\spx@image@box\hbox{\includegraphics[#1,draft]{#2}}%