[latex3-commits] [git/LaTeX3-latex3-latex2e] gh222: Update verbatim.dtx to put quotes arond the filename in the verbatimwrite example (0c081d18)

Johannes Braams texniek at braams.xs4all.nl
Sun Jul 5 20:36:49 CEST 2020


Repository : https://github.com/latex3/latex2e
On branch  : gh222
Link       : https://github.com/latex3/latex2e/commit/0c081d18a958977a331d8a102e9029914adebcd9

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

commit 0c081d18a958977a331d8a102e9029914adebcd9
Author: Johannes Braams <texniek at braams.xs4all.nl>
Date:   Sun Jul 5 20:36:49 2020 +0200

    Update verbatim.dtx to put quotes arond the filename in the verbatimwrite example


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

0c081d18a958977a331d8a102e9029914adebcd9
 required/tools/verbatim.dtx | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/required/tools/verbatim.dtx b/required/tools/verbatim.dtx
index fead414a..916e5e90 100644
--- a/required/tools/verbatim.dtx
+++ b/required/tools/verbatim.dtx
@@ -462,9 +462,12 @@
 % the spacing.
 % Then we open the file and set the category codes of all special
 % characters:
+% \changes{v1.5t}{2020-07-05}{Added quotes around the filename in
+%    order to allow a filename with spaces; also added a space and
+%    comment-character to allow for thespace dlimited argument.} 
 % \begin{verbatim}
 %  \@bsphack
-%  \immediate\openout \verbatim at out #1
+%  \immediate\openout \verbatim at out "#1" %
 %  \let\do\@makeother\dospecials
 %  \catcode`\^^M\active
 %\end{verbatim}
@@ -503,7 +506,7 @@
 %<*package>
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{verbatim}
-     [2020-06-06 v1.5s LaTeX2e package for verbatim enhancements]
+     [2020-07-05 v1.5t LaTeX2e package for verbatim enhancements]
 \@ifundefined{verbatim@@@}{}{\endinput}
 %    \end{macrocode}
 %
@@ -1499,13 +1502,13 @@
 %    |\verbatiminput| from others.
 %    \begin{macrocode}
     \@addtofilelist{#1}%
-    \ProvidesFile{#1}[(verbatim)]%
+[2020-07-05[(verbatim)]%
 %    \end{macrocode}
 %    While reading from the file it is useful to switch off the
 %    recognition of the end-of-line character.  This saves us stripping
 %    off spaces from the contents of the line.
 %    \begin{macrocode}
-    \expandafter\endlinechar\expandafter\m at ne
+    \expandafter\endlinechar\expandafter\v1.5t at ne
     \expandafter\verbatim at read@file
     \expandafter\endlinechar\the\endlinechar\relax
     \closein\verbatim at in@stream





More information about the latex3-commits mailing list.