[latex3-commits] [git/LaTeX3-latex3-latex2e] lthooks2: test for traling or leading spaces inside \input (85114fbe)

Frank Mittelbach frank.mittelbach at latex-project.org
Sat Aug 15 16:52:00 CEST 2020


Repository : https://github.com/latex3/latex2e
On branch  : lthooks2
Link       : https://github.com/latex3/latex2e/commit/85114fbe3206eb4bfb79d021c663fc038e0911f2

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

commit 85114fbe3206eb4bfb79d021c663fc038e0911f2
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date:   Sat Aug 15 16:52:00 2020 +0200

    test for traling or leading spaces inside \input


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

85114fbe3206eb4bfb79d021c663fc038e0911f2
 base/testfiles/tlb-input.luatex.tlg | 21 ++++++++++++++++++
 base/testfiles/tlb-input.lvt        | 43 +++++++++++++++++++++++++++++++++++++
 base/testfiles/tlb-input.tlg        | 21 ++++++++++++++++++
 3 files changed, 85 insertions(+)

diff --git a/base/testfiles/tlb-input.luatex.tlg b/base/testfiles/tlb-input.luatex.tlg
new file mode 100644
index 00000000..52ef2e11
--- /dev/null
+++ b/base/testfiles/tlb-input.luatex.tlg
@@ -0,0 +1,21 @@
+This is a generated file for the LaTeX2e validation system.
+Don't change this file in any respect.
+Author: Johannes Braams
+Format: LaTeX2e<2020-10-01>
+Main Class: article
+Normal case:
+("./file name.tex"
+file name.tex
+)
+trailing space:
+("./file name.tex"
+file name.tex
+)
+leading space:
+("./file name.tex"
+file name.tex
+)
+leading and trailing space:
+("./file name.tex"
+file name.tex
+) (tlb-input.aux)
diff --git a/base/testfiles/tlb-input.lvt b/base/testfiles/tlb-input.lvt
new file mode 100644
index 00000000..513ae521
--- /dev/null
+++ b/base/testfiles/tlb-input.lvt
@@ -0,0 +1,43 @@
+\documentclass{article}
+\begin{filecontents}{file name.tex}
+\typeout{file name.tex}
+\end{filecontents}
+
+\input{test2e}
+
+\START
+\AUTHOR{Johannes Braams}
+\FORMAT{LaTeX2e<2020-10-01>}
+\CLASS{article}
+
+\OMIT
+\begin{document}
+\TIMO
+
+\typeout{Normal case:}
+\input{file name}
+
+\typeout{trailing space:}
+\input{file name }
+
+\typeout{leading space:}
+\input{ file name}
+
+\typeout{leading and trailing space:}
+\input{ file name }
+
+\end{document}
+
+
+% neither work correctly:
+
+\begin{filecontents}{" file name.tex"}
+\typeout{file name.tex with space in front}
+\end{filecontents}
+
+\typeout{special using quotes:}
+\input{" file name"}
+
+\typeout{special using \string\space:}
+\input{\space file name}
+
diff --git a/base/testfiles/tlb-input.tlg b/base/testfiles/tlb-input.tlg
new file mode 100644
index 00000000..27d1529f
--- /dev/null
+++ b/base/testfiles/tlb-input.tlg
@@ -0,0 +1,21 @@
+This is a generated file for the LaTeX2e validation system.
+Don't change this file in any respect.
+Author: Johannes Braams
+Format: LaTeX2e<2020-10-01>
+Main Class: article
+Normal case:
+(file name.tex
+file name.tex
+)
+trailing space:
+(file name.tex
+file name.tex
+)
+leading space:
+(file name.tex
+file name.tex
+)
+leading and trailing space:
+(file name.tex
+file name.tex
+) (tlb-input.aux)





More information about the latex3-commits mailing list.