Skip to content

Commit

Permalink
Add variants \tl_if_single:c(TF) and \tl_if_single_p:c (#1272)
Browse files Browse the repository at this point in the history
  • Loading branch information
muzimuzhi authored and josephwright committed Oct 4, 2023
1 parent 2792907 commit cb110d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions l3kernel/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ this project uses date-based 'snapshot' version identifiers.
- Documentation for `\sys_if_timer_exist_p:` and `\sys_if_timer_exist:(TF)`.
They were supported since l3kernel 2021-05-25, along with `\sys_timer:`.
- l3doc.dtx: Support for footnotes in the function and variable environment
- Variants `\tl_if_single:c(TF)` and `\tl_if_single_p:c` (issue \#1272)

### Changed
- Convert `\file_if_exist:n(TF)` to expandable status,
Expand Down
3 changes: 2 additions & 1 deletion l3kernel/l3tl.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -2427,13 +2427,14 @@
% \end{macro}
% \end{macro}
%
% \begin{macro}[EXP,pTF]{\tl_if_single:N}
% \begin{macro}[EXP,pTF]{\tl_if_single:N, \tl_if_single:c}
% Expand the token list and feed it to \cs{tl_if_single:nTF}.
% \begin{macrocode}
\cs_new:Npn \tl_if_single_p:N { \exp_args:No \tl_if_single_p:n }
\cs_new:Npn \tl_if_single:NT { \exp_args:No \tl_if_single:nT }
\cs_new:Npn \tl_if_single:NF { \exp_args:No \tl_if_single:nF }
\cs_new:Npn \tl_if_single:NTF { \exp_args:No \tl_if_single:nTF }
\prg_generate_conditional_variant:Nnn \tl_if_single:N {c} { p , T , F , TF }
% \end{macrocode}
% \end{macro}
%
Expand Down

0 comments on commit cb110d4

Please sign in to comment.