[latex3-commits] [git/LaTeX3-latex3-latex2e] keyval-detect: Protect against nonstandard catcodes (86e471fe)
Joseph Wright
joseph.wright at morningstar2.co.uk
Wed Aug 31 08:27:16 CEST 2022
Repository : https://github.com/latex3/latex2e
On branch : keyval-detect
Link : https://github.com/latex3/latex2e/commit/86e471fecd8567282d564573d1ccdeef88f4995a
>---------------------------------------------------------------
commit 86e471fecd8567282d564573d1ccdeef88f4995a
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date: Mon Aug 29 22:42:00 2022 -0300
Protect against nonstandard catcodes
>---------------------------------------------------------------
86e471fecd8567282d564573d1ccdeef88f4995a
base/ltcmd.dtx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/base/ltcmd.dtx b/base/ltcmd.dtx
index dff5d652..8c8538fa 100644
--- a/base/ltcmd.dtx
+++ b/base/ltcmd.dtx
@@ -4068,7 +4068,7 @@
}
{
\bool_lazy_or:nnTF
- { \str_if_eq_p:nn {#1} { $ } }
+ { \token_if_math_toggle_p:N #1 }
{ \str_if_eq_p:nn {#1} { \( } }
{ \@@_arg_to_keyvalue_math:w }
{ \@@_arg_to_keyvalue_loop:w }
@@ -4090,7 +4090,7 @@
\quark_if_recursion_tail_stop_do:Nn #1
{ \@@_arg_to_keyvalue_set_default:nn }
\bool_lazy_or:nnTF
- { \str_if_eq_p:nn {#1} { $ } }
+ { \token_if_math_toggle_p:N #1 }
{ \str_if_eq_p:nn {#1} { \) } }
{ \@@_arg_to_keyvalue_loop:w }
{ \@@_arg_to_keyvalue_math:w }
More information about the latex3-commits
mailing list.