[latex3-commits] [git/LaTeX3-latex3-latex2e] gh217: Pass the filename by value instead of by reference (2738b7d8)

Johannes Braams texniek at braams.xs4all.nl
Sat May 2 20:56:41 CEST 2020


Repository : https://github.com/latex3/latex2e
On branch  : gh217
Link       : https://github.com/latex3/latex2e/commit/2738b7d866b229efe6d93f6b48ff03da744d6cfc

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

commit 2738b7d866b229efe6d93f6b48ff03da744d6cfc
Author: Johannes Braams <texniek at braams.xs4all.nl>
Date:   Sat May 2 20:56:41 2020 +0200

    Pass the filename by value instead of by reference


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

2738b7d866b229efe6d93f6b48ff03da744d6cfc
 base/ltfiles.dtx | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/base/ltfiles.dtx b/base/ltfiles.dtx
index c1e7a53d..a6e929bc 100644
--- a/base/ltfiles.dtx
+++ b/base/ltfiles.dtx
@@ -590,13 +590,15 @@
 % this will not work and cause surprising results.
 % \changes{v1.2g}{2020/05/02}{Get rid of leading and trailing spaces
 %    from the filename}
+% \changes{v1.2g}{2020-05-02}{Pass the filename to \ver{@include} by
+%    value istead of by reference} 
 %    \begin{macrocode}
 \def\include#1{\relax
   \ifnum\@auxout=\@partaux
     \@latex at error{\string\include\space cannot be nested}\@eha
   \else
     \set at curr@file at trim@spaces{#1}%
-    \@include{\@curr at file}
+    \expandafter\@include\expandafter{\@curr at file}
   \fi}
 %    \end{macrocode}
 % \end{macro}





More information about the latex3-commits mailing list.