[latex3-commits] [git/LaTeX3-latex3-latex3] main: Add \str_if_empty:n(TF) (025bde6cd)

Joseph Wright joseph.wright at morningstar2.co.uk
Mon Mar 21 13:47:58 CET 2022


Repository : https://github.com/latex3/latex3
On branch  : main
Link       : https://github.com/latex3/latex3/commit/025bde6cd341d226a082876276f6461210964a2a

>---------------------------------------------------------------

commit 025bde6cd341d226a082876276f6461210964a2a
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Mon Mar 21 12:47:58 2022 +0000

    Add \str_if_empty:n(TF)


>---------------------------------------------------------------

025bde6cd341d226a082876276f6461210964a2a
 l3kernel/CHANGELOG.md | 1 +
 l3kernel/l3str.dtx    | 8 +++++---
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/l3kernel/CHANGELOG.md b/l3kernel/CHANGELOG.md
index 8719ffc95..7ea39f4b4 100644
--- a/l3kernel/CHANGELOG.md
+++ b/l3kernel/CHANGELOG.md
@@ -10,6 +10,7 @@ this project uses date-based 'snapshot' version identifiers.
 ### Added
 - `\keys_precompile:nnN` for conversion of keyvals to fast-to-apply token
   lists
+- Missing `\str_if_empty:n(TF)` (see issue \#1071)
 
 ## [2022-02-24]
 
diff --git a/l3kernel/l3str.dtx b/l3kernel/l3str.dtx
index 897f4b962..92d83b6fe 100644
--- a/l3kernel/l3str.dtx
+++ b/l3kernel/l3str.dtx
@@ -222,8 +222,8 @@
 %
 % \section{String conditionals}
 %
-% \begin{function}[EXP,pTF, added = 2015-09-18]
-%   {\str_if_empty:N, \str_if_empty:c}
+% \begin{function}[EXP,pTF, added = 2015-09-18, updated = 2022-03-21]
+%   {\str_if_empty:N, \str_if_empty:c, \str_if_empty:n}
 %   \begin{syntax}
 %     \cs{str_if_empty_p:N} \meta{str~var}
 %     \cs{str_if_empty:NTF} \meta{str~var} \Arg{true code} \Arg{false code}
@@ -1113,7 +1113,7 @@
 %
 % \begin{macro}[pTF, EXP]
 %   {
-%     \str_if_empty:N, \str_if_empty:c,
+%     \str_if_empty:N, \str_if_empty:c, \str_if_empty:n,
 %     \str_if_exist:N, \str_if_exist:c
 %   }
 %   More copy-paste!
@@ -1126,6 +1126,8 @@
   { p , T , F , TF }
 \prg_new_eq_conditional:NNn \str_if_empty:c \tl_if_empty:c
   { p , T , F , TF }
+\prg_new_eq_conditional:NNn \str_if_empty:n \tl_if_empty:n
+  { p , T , F , TF }
 %    \end{macrocode}
 % \end{macro}
 %





More information about the latex3-commits mailing list.