[latex3-commits] [git/LaTeX3-latex3-latex2e] hook-args: Only normalise if the cs is defined (abc0a3f3)
PhelypeOleinik
phelype.oleinik at latex-project.org
Thu Apr 6 01:21:12 CEST 2023
Repository : https://github.com/latex3/latex2e
On branch : hook-args
Link : https://github.com/latex3/latex2e/commit/abc0a3f3c8c65d1ab38a81ee0bb12c304225b8b6
>---------------------------------------------------------------
commit abc0a3f3c8c65d1ab38a81ee0bb12c304225b8b6
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date: Wed Apr 5 20:21:12 2023 -0300
Only normalise if the cs is defined
>---------------------------------------------------------------
abc0a3f3c8c65d1ab38a81ee0bb12c304225b8b6
base/lthooks.dtx | 17 ++++++++++-------
1 file changed, 10 insertions(+), 7 deletions(-)
diff --git a/base/lthooks.dtx b/base/lthooks.dtx
index 4d77f657..f7a66689 100644
--- a/base/lthooks.dtx
+++ b/base/lthooks.dtx
@@ -4389,17 +4389,20 @@
%<latexrelease> {Hooks~with~args}
\cs_new_protected:Npn \@@_normalise_cs_args:nn #1 #2
{
- \@@_code_gset_auxi:veen
- { c_@@_#2_parameter_tl }
+ \cs_if_exist:cT { @@#1~#2 }
{
- \exp_args:NNo \exp_args:No \@@_double_hashes:n
+ \@@_code_gset_auxi:veen
+ { c_@@_#2_parameter_tl }
{
- \cs:w @@#1~#2 \exp_last_unbraced:Ne \cs_end:
- { \@@_braced_cs_parameter:n { @@#1~#2 } }
+ \exp_args:NNo \exp_args:No \@@_double_hashes:n
+ {
+ \cs:w @@#1~#2 \exp_last_unbraced:Ne \cs_end:
+ { \@@_braced_cs_parameter:n { @@#1~#2 } }
+ }
}
+ { }
+ { @@#1~#2 }
}
- { }
- { @@#1~#2 }
}
%<latexrelease>\EndIncludeInRelease
% \end{macrocode}
More information about the latex3-commits
mailing list.