[latex3-commits] [git/LaTeX3-latex3-latex2e] gh221: Added extra \expandafters to make the case with a quoted filename work as well (217a057b)

Johannes Braams texniek at braams.xs4all.nl
Sat Apr 18 14:51:08 CEST 2020


Repository : https://github.com/latex3/latex2e
On branch  : gh221
Link       : https://github.com/latex3/latex2e/commit/217a057be38ea8bd210f94985360ac845522248d

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

commit 217a057be38ea8bd210f94985360ac845522248d
Author: Johannes Braams <texniek at braams.xs4all.nl>
Date:   Sat Apr 18 14:51:08 2020 +0200

    Added extra \expandafters to make the case with a quoted filename work as well


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

217a057be38ea8bd210f94985360ac845522248d
 base/docstrip.dtx | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/base/docstrip.dtx b/base/docstrip.dtx
index 5126a573..d21ab378 100644
--- a/base/docstrip.dtx
+++ b/base/docstrip.dtx
@@ -1654,6 +1654,8 @@ Z
 %
 % \changes{v2.5h}{2020/04/18}{Allow spaces in filenames by enclosing
 %    them in quotes (gh/221)}
+% \changes{v2.5h}{2020/04/18}{Added two times two \cs{expandafters} to
+%    make the case with a filename in quotes wqork as well} 
 %    \begin{macrocode}
 \chardef\stream at closed=16
 \def\StreamOpen#1{%
@@ -1662,8 +1664,8 @@ Z
     \chardef#1=\expandafter\@stripstr\string##1 %
     \global\chardef##1=1 %
     \edef\q at curr@file{%
-      \expandafter\quote at name
-      \expandafter{\csname pth@\@stripstring#1\endcsname}}
+      \expandafter\expandafter\expandafter\quote at name
+      \expandafter\expandafter\expandafter{\csname pth@\@stripstring#1\endcsname}}
     \immediate\openout#1=\q at curr@file\relax
     \@streamfound
     \fi}





More information about the latex3-commits mailing list.