[latex3-commits] [git/LaTeX3-latex3-latex2e] develop: Protect against nonstandard catcodes (9db22bfa)

Joseph Wright joseph.wright at morningstar2.co.uk
Thu Sep 1 22:17:07 CEST 2022


Repository : https://github.com/latex3/latex2e
On branch  : develop
Link       : https://github.com/latex3/latex2e/commit/9db22bfa02be93134703f06693c21da80cb23741

>---------------------------------------------------------------

commit 9db22bfa02be93134703f06693c21da80cb23741
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date:   Mon Aug 29 22:42:00 2022 -0300

    Protect against nonstandard catcodes


>---------------------------------------------------------------

9db22bfa02be93134703f06693c21da80cb23741
 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.