[latex3-commits] [git/LaTeX3-latex3-latex2e] hotfix/gh422: Protect against losing braces (d354082c)
PhelypeOleinik
phelype.oleinik at latex-project.org
Sat Nov 7 18:59:04 CET 2020
Repository : https://github.com/latex3/latex2e
On branch : hotfix/gh422
Link : https://github.com/latex3/latex2e/commit/d354082c04839b0d31a7a89a93b9e16bc8567bf3
>---------------------------------------------------------------
commit d354082c04839b0d31a7a89a93b9e16bc8567bf3
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date: Sat Nov 7 14:59:04 2020 -0300
Protect against losing braces
>---------------------------------------------------------------
d354082c04839b0d31a7a89a93b9e16bc8567bf3
base/ltclass.dtx | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/base/ltclass.dtx b/base/ltclass.dtx
index ce5398d2..55aa4704 100644
--- a/base/ltclass.dtx
+++ b/base/ltclass.dtx
@@ -696,13 +696,15 @@
%
%
% \begin{macro}{\@kernel at currpathstack}
-% Path to the current file if explicitly given.
+% Path to the current file if explicitly given. The auxiliary is
+% needed here to insert a \cs{@empty} to prevent the loss of braces.
% \changes{v1.3u}{2020/11/07}{Macro added}
% \begin{macrocode}
\gdef\@kernel at currpathstack{}
-\def\@p at pfilepath#1#2\@nil{%
- \gdef\@currpath{#1}%
- \gdef\@kernel at currpathstack{#2}}
+\def\@p at pfilepath#1{%
+ \gdef\@currpath{#1}\@p at pfilepath@aux\@empty}
+\def\@p at pfilepath@aux#1\@nil{%
+ \xdef\@kernel at currpathstack{#1}}
% \end{macrocode}
% \end{macro}
%
More information about the latex3-commits
mailing list.