[latex3-commits] [git/LaTeX3-latex3-latex2e] gh221: testfile showing that both cases (lorem ipsum.tex and "lorem ipsum.tex") work (f8743264)

Johannes Braams texniek at braams.xs4all.nl
Sat Apr 18 14:57:19 CEST 2020


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

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

commit f8743264826594d240d5007ddbbe287f9f7bf54e
Author: Johannes Braams <texniek at braams.xs4all.nl>
Date:   Sat Apr 18 14:57:19 2020 +0200

    testfile showing that both cases (lorem ipsum.tex and "lorem ipsum.tex") work


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

f8743264826594d240d5007ddbbe287f9f7bf54e
 base/testfiles/github-0221.lvt | 33 +++++++++++++++++++++++++++++++++
 base/testfiles/github-0221.tlg | 10 ++++++++++
 2 files changed, 43 insertions(+)

diff --git a/base/testfiles/github-0221.lvt b/base/testfiles/github-0221.lvt
new file mode 100644
index 00000000..03e3a505
--- /dev/null
+++ b/base/testfiles/github-0221.lvt
@@ -0,0 +1,33 @@
+%
+% Test file for Github issue 221 generating file with space in the
+% name.
+% It should be possible to have docstrip generate a file that has a
+% space character in the name, with or without surrounding quotes.
+%
+%<*driver>
+\documentclass{article}
+\input{test2e}
+\input docstrip.tex
+\askforoverwritefalse
+\START
+\AUTHOR{Johannes Braams}
+\FORMAT{LaTeX2e <2020-02-02> pathc level 5}
+\OMIT
+\generate{ \file{lorem ipsum.tex} { \from{\jobname.lvt} {lips} } }
+\TIMO
+\sbox0{\IfFileExists{"lorem ipsum.tex"}%
+                    {\typeout{1: yes}}%
+		    {\typeout{1: no}}}
+\showthe\wd0
+
+\OMIT
+\generate{ \file{"lorem ipsum quoted.tex"} { \from{\jobname.lvt} {lips} } }
+\TIMO
+\sbox0{\IfFileExists{"lorem ipsum quoted.tex"}%
+                    {\typeout{2: yes}}%
+		    {\typeout{2: no}}}
+\showthe\wd0
+\END
+\stop
+%</driver>
+%<lips>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
diff --git a/base/testfiles/github-0221.tlg b/base/testfiles/github-0221.tlg
new file mode 100644
index 00000000..5c798e77
--- /dev/null
+++ b/base/testfiles/github-0221.tlg
@@ -0,0 +1,10 @@
+This is a generated file for the LaTeX2e validation system.
+Don't change this file in any respect.
+Author: Johannes Braams
+Format: LaTeX2e <2020-02-02> pathc level 5
+1: yes
+> 0.0pt.
+l. ...\showthe\wd0
+2: yes
+> 0.0pt.
+l. ...\showthe\wd0





More information about the latex3-commits mailing list.