From 9243c71452f770c56d13ca0db3b5165a580add68 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Wed, 7 Dec 2011 23:05:18 +0000
Subject: silence (7dec11)

git-svn-id: svn://tug.org/texlive/trunk@24792 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/tex/latex/silence/silence.sty | 17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/silence/silence.sty')

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}
-- 
cgit v1.2.3

