[latex3-commits] [git/LaTeX3-latex3-latex2e] apdf161: Protect against unbalanced conditionals in \hook_use:n (e395959c)
PhelypeOleinik
phelype.oleinik at latex-project.org
Wed Sep 9 12:16:21 CEST 2020
Repository : https://github.com/latex3/latex2e
On branch : apdf161
Link : https://github.com/latex3/latex2e/commit/e395959cf9aa313f98141e77b465ed0500e716fb
>---------------------------------------------------------------
commit e395959cf9aa313f98141e77b465ed0500e716fb
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date: Wed Sep 9 07:16:21 2020 -0300
Protect against unbalanced conditionals in \hook_use:n
>---------------------------------------------------------------
e395959cf9aa313f98141e77b465ed0500e716fb
base/lthooks.dtx | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/base/lthooks.dtx b/base/lthooks.dtx
index b62ad42f..c7a58d3e 100644
--- a/base/lthooks.dtx
+++ b/base/lthooks.dtx
@@ -3421,15 +3421,15 @@
\cs_new:Npn \@@_use_initialized:n #1
{
\if_cs_exist:w g_@@_#1_code_tl \cs_end:
- \cs:w g_@@_#1_code_tl \exp_after:wN \cs_end:
\else:
- \@@_use_undefined:nw {#1}
+ \@@_use_undefined:w
\fi:
+ \cs:w g_@@_ \use:n {#1} _code_tl \cs_end:
}
-\cs_new:Npn \@@_use_undefined:nw #1 #2
+\cs_new:Npn \@@_use_undefined:w #1 #2 \use:n #3 #4 \cs_end:
{
- #2 % fi
- \@@_use:wn #1 / \s_@@_mark {#1}
+ #1 % fi
+ \@@_use:wn #3 / \s_@@_mark {#3}
}
\cs_new_protected:Npn \@@_preamble_hook:n #1
{ \@@_initialize_hook_code:n {#1} }
More information about the latex3-commits
mailing list.