[latex3-commits] [l3svn] 06/06: Fix expandable D-type arg grabbing when arg. is empty
noreply at latex-project.org
noreply at latex-project.org
Sun Nov 8 22:37:05 CET 2015
This is an automated email from the git hooks/post-receive script.
joseph pushed a commit to branch master
in repository l3svn.
commit a6b176ce5530f6da5380e0266fd239dbf78fdf96
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Sun Nov 8 20:56:26 2015 +0000
Fix expandable D-type arg grabbing when arg. is empty
For example
\DeclareExpandableDocumentCommand\foo{d||m}
{\showtokens{#1::#2}}
otherwise fails with
\foo||{A}
---
l3packages/xparse/xparse.dtx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/l3packages/xparse/xparse.dtx b/l3packages/xparse/xparse.dtx
index 253a763..52e2a9e 100644
--- a/l3packages/xparse/xparse.dtx
+++ b/l3packages/xparse/xparse.dtx
@@ -2876,7 +2876,7 @@
{
\str_if_eq_x:nnTF
{ \exp_not:o { \use_none:n #3 } }
- { { \exp_not:o { \use_ii:nnn #3 \q_nil } } }
+ { { \exp_not:o { \use_ii:nnn #3 ? \q_nil } } }
{ \@@_put_arg_expandable:ow { \use_ii:nn #3 } }
{ \@@_put_arg_expandable:ow { \use_none:n #3 } }
#2 \q_@@ #1
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the latex3-commits
mailing list