summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/etoolbox/etoolbox.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2015-08-03 22:03:15 +0000
committerKarl Berry <karl@freefriends.org>2015-08-03 22:03:15 +0000
commit1537e6d91a27ed0dda1f54c21031f800f1179a71 (patch)
tree4f2e5bab9cab2010b7dfb306f249ce19c338cc63 /Master/texmf-dist/tex/latex/etoolbox/etoolbox.sty
parentc5c45d581249ea2b3fed630fa60e82ec968f6697 (diff)
etoolbox (3aug15)
git-svn-id: svn://tug.org/texlive/trunk@38031 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/etoolbox/etoolbox.sty')
-rw-r--r--Master/texmf-dist/tex/latex/etoolbox/etoolbox.sty17
1 files changed, 12 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/etoolbox/etoolbox.sty b/Master/texmf-dist/tex/latex/etoolbox/etoolbox.sty
index 154a030aaef..35549423a15 100644
--- a/Master/texmf-dist/tex/latex/etoolbox/etoolbox.sty
+++ b/Master/texmf-dist/tex/latex/etoolbox/etoolbox.sty
@@ -12,7 +12,7 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{etoolbox}
- [2015/05/04 v2.2 e-TeX tools for LaTeX (JAW)]
+ [2015/08/02 v2.2a e-TeX tools for LaTeX (JAW)]
\begingroup
\@ifundefined{eTeXversion}
@@ -476,12 +476,19 @@
% {<string>}{<true>}{<false>}
-\newcommand{\ifblank}[1]{% from url.sty
- \etb@ifblank@i#1&&\@secondoftwo\@firstoftwo:}
-\long\def\etb@ifblank@i#1#2&#3#4#5:{#4}
+\newcommand{\ifblank}[1]{% from expl3
+ \expandafter\ifx\expandafter\relax\detokenize\expandafter{\@gobble#1?}\relax
+ \expandafter\@firstoftwo
+ \else
+ \expandafter\@secondoftwo
+ \fi}
\newcommand{\notblank}[1]{%
- \etb@ifblank@i#1&&\@firstoftwo\@secondoftwo:}
+ \expandafter\ifx\expandafter\relax\detokenize\expandafter{\@gobble#1?}\relax
+ \expandafter\@secondoftwo
+ \else
+ \expandafter\@firstoftwo
+ \fi}
% {<numexpr>}{<comp>}{<numexpr>}{<true>}{<false>}