Skip to content

Commit 25c463d

Browse files
committed
Let user iconpackage original setting not get lost for error message
1 parent 4bc4ed3 commit 25c463d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

sphinx/texinputs/sphinx.sty

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
Footnote rendering may have had problems, due to extra package or
6868
document class; check latex log for instructions}%
6969
\@namedef{sphinx_buildwarning_badiconpackage}{%
70-
You have set iconpackage=\spx@opt@iconpackage, but this LaTeX package
70+
You have set iconpackage=\spx@usr@iconpackage, but this LaTeX package
7171
is not found}%
7272

7373
%% OPTION HANDLING
@@ -907,10 +907,11 @@
907907
\IfFileExists{\spx@opt@iconpackage.sty}
908908
{\RequirePackage{\spx@opt@iconpackage}}%
909909
{%
910+
\let\spx@usr@iconpackage\spx@opt@iconpackage
910911
\sphinxbuildwarning{badiconpackage}%
911912
\PackageWarningNoLine{sphinx}{%
912-
You have set iconpackage=\spx@opt@iconpackage\MessageBreak
913-
But \spx@opt@iconpackage.sty is not found by LaTeX}
913+
You have set iconpackage=\spx@usr@iconpackage\MessageBreak
914+
But \spx@usr@iconpackage.sty is not found by LaTeX}
914915
\let\spx@opt@iconpackage\spxstring@none
915916
}%
916917
\fi

0 commit comments

Comments
 (0)