diff options
author | Karl Berry <karl@freefriends.org> | 2011-12-07 23:05:18 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2011-12-07 23:05:18 +0000 |
commit | 9243c71452f770c56d13ca0db3b5165a580add68 (patch) | |
tree | 43eaecf2182fbaf58be6bca0730416140d251771 /Master/texmf-dist/tex/latex/silence | |
parent | 4eea78f0176ac3961e09a5428ce7096b1938ce63 (diff) |
silence (7dec11)
git-svn-id: svn://tug.org/texlive/trunk@24792 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/silence')
-rw-r--r-- | Master/texmf-dist/tex/latex/silence/silence.sty | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/silence/silence.sty b/Master/texmf-dist/tex/latex/silence/silence.sty index 22720008669..0d6b081cb04 100644 --- a/Master/texmf-dist/tex/latex/silence/silence.sty +++ b/Master/texmf-dist/tex/latex/silence/silence.sty @@ -9,7 +9,7 @@ %% ****************************************************************************** %% ****************************************************************************** %% ** ** -%% ** silence v.1.3 by Paul Isambert ** +%% ** silence v.1.4 by Paul Isambert ** %% ** See the documentation for a comment on the implementation. ** %% ** ** %% ** This set of macros is published under the LaTeX Project Public License. ** @@ -27,7 +27,7 @@ %% \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{silence}[2010/02/28 v1.3 Selective filtering of warnings and error messages] +\ProvidesPackage{silence}[2011/12/06 v1.4 Selective filtering of warnings and error messages] \makeatletter \newcount\sl@Save @@ -343,6 +343,15 @@ \fi \fi\sl@next} +\def\sl@RemoveGobbletwo#1\@gobbletwo\sl@Terminator#2\sl@Terminator{% + \def\sl@Tempb{#2}% + \ifx\sl@Tempb\@empty + \else + \def\sl@Tempa{#1}% + \expandafter\@gobble + \fi + } + \def\sl@StoreMessage#1{% \ifsl@SafeMode \sl@UnexpandedMessage{#1}% @@ -351,7 +360,9 @@ \bgroup \let\protect\string \let\noexpand\string - \edef\sl@Tempa{#1}% + \def\sl@Tempa{#1}% + \sl@RemoveGobbletwo#1\sl@Terminator\@gobbletwo\sl@Terminator\sl@Terminator + \edef\sl@Tempa{\sl@Tempa}% \global\expandafter\sl@Message\expandafter{\sl@Tempa}% \egroup \fi} |