[latex3-commits] [git/LaTeX3-latex3-latex2e] keyval-detect: Protect against nonstandard catcodes (6dcdb760)
PhelypeOleinik
phelype.oleinik at latex-project.org
Tue Aug 30 03:42:00 CEST 2022
Repository : https://github.com/latex3/latex2e
On branch : keyval-detect
Link : https://github.com/latex3/latex2e/commit/6dcdb760b209365b58dca16a7bc073c6e2ab7e7a
>---------------------------------------------------------------
commit 6dcdb760b209365b58dca16a7bc073c6e2ab7e7a
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date: Mon Aug 29 22:42:00 2022 -0300
Protect against nonstandard catcodes
>---------------------------------------------------------------
6dcdb760b209365b58dca16a7bc073c6e2ab7e7a
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.