summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/dowith/dowith.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-07-23 23:37:06 +0000
committerKarl Berry <karl@freefriends.org>2012-07-23 23:37:06 +0000
commit46182f49862367599680945cbd4188c96f0c6071 (patch)
tree7d4755d85684de3a7f13d11428ab2896bdf1dab2 /Master/texmf-dist/tex/generic/dowith/dowith.sty
parent583a3069ae795f9f25310af8d14d12d385b60348 (diff)
dowith (5jun12)
git-svn-id: svn://tug.org/texlive/trunk@27125 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/generic/dowith/dowith.sty')
-rw-r--r--Master/texmf-dist/tex/generic/dowith/dowith.sty14
1 files changed, 12 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/generic/dowith/dowith.sty b/Master/texmf-dist/tex/generic/dowith/dowith.sty
index 9b2ce00c4d5..6f75654b984 100644
--- a/Master/texmf-dist/tex/generic/dowith/dowith.sty
+++ b/Master/texmf-dist/tex/generic/dowith/dowith.sty
@@ -1,5 +1,5 @@
\def\filename{dowith} \def\fileinfo{simple list loop (UL)}
-\def\filedate{2012/05/19} \def\fileversion{v0.21a}
+\def\filedate{2012/06/04} \def\fileversion{v0.22}
%% Copyright (C) 2011 Uwe Lueck,
%% http://www.contact-ednotes.sty.de.vu
%% -- author-maintained in the sense of LPPL below --
@@ -57,7 +57,16 @@
%% of <list>. An element of <list> (after tokenizing)
%% may be either a single token or a group `{<balanced>}'.
\def\DoWith#1#2{%
- \ifx\StopDoing#2%
+ \ifx\StopDoing#2\empty
+%% The previous `\empty' (replacing `%') is a bug fix as of v0.22,
+%% while in my extension draft I already had it in January 2012.
+%% It allows ``empty" arglist items \qtd{\lbtok\rbtok}.
+%% Before v0.22, such an empty brace group would have resulted
+%% in comparing `\StopDoing' with `\else', so \qtd{\lbtok\rbtok}
+%% would have had the same effect as `\StopDoing', the token text
+%% after `\else' until `\fi' would have been skipped.
+%% Instead, the user may have a reason to allow empty arguments\slash
+%% brace groups.
\else#1{#2}\expandafter\DoWith\expandafter#1\fi}
%% |\StopDoing| delimits the list:
\let\StopDoing\DoWith
@@ -197,3 +206,4 @@ v0.2 2011/11/02 simpler, documented
v0.21 2012/05/14 fix for "generic" and `typeoutfileinfo':
@ before ...!
v0.21a 2012/05/19 \labels sec:apply, sec:core; \pagebreak?
+v0.22 2012/06/04 allow {} items