[latex3-commits] [git/LaTeX3-latex3-latex2e] gh386: Protect spaces and use \char_generate:nn (e2748bd6)

PhelypeOleinik phelype.oleinik at latex-project.org
Mon Sep 7 16:03:23 CEST 2020


Repository : https://github.com/latex3/latex2e
On branch  : gh386
Link       : https://github.com/latex3/latex2e/commit/e2748bd6ebda20531046089bb7ff59dcd66ee62e

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

commit e2748bd6ebda20531046089bb7ff59dcd66ee62e
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date:   Mon Sep 7 11:03:23 2020 -0300

    Protect spaces and use \char_generate:nn


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

e2748bd6ebda20531046089bb7ff59dcd66ee62e
 base/ltdefns.dtx | 6 ++----
 base/ltexpl.dtx  | 6 ++++--
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/base/ltdefns.dtx b/base/ltdefns.dtx
index 27c15e23..476d102a 100644
--- a/base/ltdefns.dtx
+++ b/base/ltdefns.dtx
@@ -2219,10 +2219,8 @@
 \def\string at makeletter#1{%
   \@expl at str@map at function@@NN#1\@string at makeletter}
 \def\@string at makeletter#1{%
-  \char at if@alph#1%
-    {\ifnum`#1<`a \@Alph{\numexpr`#1-`A+1\relax}%
-     \else \@alph{\numexpr`#1-`a+1\relax}%
-     \fi}%
+  \char at if@alph{#1}%
+    {\@expl at char@generate@@nn{`#1}{11}}%
     {#1}}
 \def\char at if@alph#1{%
   \ifnum0\ifnum`#1<`A 1\fi\ifnum`#1>`z 1\fi
diff --git a/base/ltexpl.dtx b/base/ltexpl.dtx
index cbd0c9a2..4100da79 100644
--- a/base/ltexpl.dtx
+++ b/base/ltexpl.dtx
@@ -272,7 +272,7 @@
 %    \end{macrocode}
 %
 % \changes{v1.2e}{2020/08/19}
-%         {Add \cs{\@expl at cs@\meta{thing}@spec@@N}
+%         {Add \cs{@expl at cs@\meta{thing}@spec@@N}
 %          for \cs{ShowCommand} (gh/373)}
 %    \begin{macrocode}
 \cs_gset_eq:NN \@expl at cs@prefix at spec@@N \cs_prefix_spec:N
@@ -281,10 +281,12 @@
 %    \end{macrocode}
 %
 % \changes{v1.2f}{2020/09/06}
-%         {Add \cs{\@expl at str@map at function@@NN}
+%         {Add \cs{@expl at str@map at function@@NN
+%          and \cs{@expl at char@generate@@nn}}
 %          for \cs{string at makeletter} (gh/386)}
 %    \begin{macrocode}
 \cs_gset_eq:NN \@expl at str@map at function@@NN \str_map_function:NN
+\cs_gset_eq:NN \@expl at char@generate@@nn \char_generate:nn
 %    \end{macrocode}
 %
 %    \begin{macrocode}





More information about the latex3-commits mailing list.