From 698d8d440eebdbea04f769e625dcecf834778ab2 Mon Sep 17 00:00:00 2001 From: jfbu Date: Fri, 5 May 2017 18:18:51 +0200 Subject: [PATCH] Change slightly console output of LaTeX deprecation macro --- sphinx/texinputs/sphinx.sty | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/sphinx/texinputs/sphinx.sty b/sphinx/texinputs/sphinx.sty index 7a142c116..b7a514a5d 100644 --- a/sphinx/texinputs/sphinx.sty +++ b/sphinx/texinputs/sphinx.sty @@ -25,15 +25,16 @@ %% for deprecation warnings \newcommand\sphinxdeprecationwarning[4]{% #1 the deprecated macro or name, -% #2 = version when deprecated, #3 = version when removed, #4 = message +% #2 = when deprecated, #3 = when removed, #4 = additional info \edef\spx@tempa{\detokenize{#1}}% \spx@ifundefined{sphinx_depr_\spx@tempa}{% \global\expandafter\let\csname sphinx_depr_\spx@tempa\endcsname\spx@tempa \expandafter\AtEndDocument\expandafter{\expandafter\let\expandafter \sphinxdeprecatedmacro\csname sphinx_depr_\spx@tempa\endcsname \PackageWarningNoLine{sphinx}{^^J**** SPHINX DEPRECATION WARNING:^^J - \sphinxdeprecatedmacro\space will be (or has been) - deprecated at Sphinx #2^^J and will be removed at Sphinx #3.^^J + \sphinxdeprecatedmacro^^J + \@spaces- is deprecated at Sphinx #2^^J + \@spaces- and removed at Sphinx #3.^^J #4^^J****}}% }{% warning already emitted (at end of latex log), don't repeat }} @@ -1361,8 +1362,10 @@ Anyhow, Sphinx mark-up uses only \string\sphinx\@tempa.}% % and also at end of log for better visibility \expandafter\sphinxdeprecationwarning\expandafter{\csname\@tempa\endcsname}{1.6}{1.7} - {\sphinxdeprecatedmacro\space already existed at Sphinx loading time! Not redefined!^^J - Sphinx mark-up uses only \string\sphinx\expandafter\@gobble\sphinxdeprecatedmacro.}% + {\sphinxdeprecatedmacro already existed at Sphinx loading time! Not redefined!^^J + Sphinx mark-up uses only \string\sphinx\expandafter\@gobble\sphinxdeprecatedmacro.^^J + Note: if this warning is about macro \string\strong, it presumably results^^J + from fontspec 2.6 having defined it prior to Sphinx. No need for alarm!}% }% \fi \fi