[latex3-commits] [latex3/latex2e] develop: Adding tabs support for \verbatiminput* (#1253) (08ee0e84)

github at latex-project.org github at latex-project.org
Mon Jan 29 10:28:43 CET 2024


Repository : https://github.com/latex3/latex2e
On branch  : develop
Link       : https://github.com/latex3/latex2e/commit/08ee0e845665def5dba61a36a03efbb7e372c5d8

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

commit 08ee0e845665def5dba61a36a03efbb7e372c5d8
Author: Lars Madsen <43265801+daleif at users.noreply.github.com>
Date:   Mon Jan 29 10:28:43 2024 +0100

    Adding tabs support for \verbatiminput* (#1253)
    
    * This fixes github #1245, should include everything needed for PR
    
    * Update CONTRIBUTING.md [ci skip]
    
    * Bump actions/cache from 3 to 4 (#1247)
    
    * \showoutput needs separate logs for each engine
    
    * typo
    
    ---------
    
    Co-authored-by: daleif <daleif at github.com>
    Co-authored-by: Joseph Wright <joseph.wright at morningstar2.co.uk>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>


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

08ee0e845665def5dba61a36a03efbb7e372c5d8
 required/tools/changes.txt                         |   4 +
 required/tools/testfiles/github-1245.luatex.tlg    | 182 +++++++++++++++++++++
 required/tools/testfiles/github-1245.lvt           |  11 ++
 required/tools/testfiles/github-1245.tlg           | 125 ++++++++++++++
 required/tools/testfiles/github-1245.xetex.tlg     | 167 +++++++++++++++++++
 .../tools/testfiles/support/github-1245-sample.txt |   3 +
 required/tools/verbatim.dtx                        |  13 +-
 7 files changed, 503 insertions(+), 2 deletions(-)

diff --git a/required/tools/changes.txt b/required/tools/changes.txt
index 2cc2a13a..656d1e59 100644
--- a/required/tools/changes.txt
+++ b/required/tools/changes.txt
@@ -5,6 +5,10 @@ completeness or accuracy and it contains some references to files that
 are not part of the distribution.
 =======================================================================
 
+2024-01-22 Lars Madsen <daleif at math.au.dk>
+
+        * verbatim.dtx: added TAB marking support to \verbatiminput* (gh/1245)
+
 2023-12-16  David Carlisle  <David.Carlisle at latex-project.org>
 
 	* showkeys.dtx: avoid adding extra box to \@lables gh/1123
diff --git a/required/tools/testfiles/github-1245.luatex.tlg b/required/tools/testfiles/github-1245.luatex.tlg
new file mode 100644
index 00000000..60fed024
--- /dev/null
+++ b/required/tools/testfiles/github-1245.luatex.tlg
@@ -0,0 +1,182 @@
+This is a generated file for the l3build validation system.
+Don't change this file in any respect.
+File: "github-1245-sample.txt"  (verbatim)
+Completed box being shipped out [1]
+\vbox(633.0+0.0)x407.0, direction TLT
+.\glue 16.0
+.\vbox(617.0+0.0)x345.0, shifted 62.0, direction TLT
+..\vbox(12.0+0.0)x345.0, glue set 12.0fil, direction TLT
+...\glue 0.0 plus 1.0fil
+...\hbox(0.0+0.0)x345.0, direction TLT
+....\hbox(0.0+0.0)x345.0, direction TLT
+..\glue 25.0
+..\glue(\lineskip) 0.0
+..\vbox(550.0+0.0)x345.0, glue set 505.94595fil, direction TLT
+...\write-{}
+...\glue(\topskip) 3.88889
+...\hbox(6.11111+1.11111)x345.0, glue set 266.25067fil, direction TLT
+....\localpar
+.....\localinterlinepenalty=0
+.....\localbrokenpenalty=0
+.....\localleftbox=null
+.....\localrightbox=null
+....\hbox(0.0+0.0)x0.0, direction TLT
+.....\glue 0.0
+.....\glue 0.0
+.....\glue -5.0
+.....\hbox(0.0+0.0)x0.0, direction TLT
+.....\glue 5.0
+....\OT1/cmtt/m/n/10 T
+....\OT1/cmtt/m/n/10 A
+....\OT1/cmtt/m/n/10 B
+....\OT1/cmtt/m/n/10 :
+....\hbox(2.19444+1.11111)x5.24995, direction TLT
+.....\glue 0.0 plus 1.0fil minus 1.0fil
+.....\OT1/cmtt/m/n/10  
+.....\glue 0.0 plus 1.0fil minus 1.0fil
+....\OT1/cmtt/m/n/10 S
+....\OT1/cmtt/m/n/10 P
+....\OT1/cmtt/m/n/10 A
+....\OT1/cmtt/m/n/10 C
+....\OT1/cmtt/m/n/10 E
+....\OT1/cmtt/m/n/10 :
+....\hbox(2.19444+1.11111)x5.24995, direction TLT
+.....\glue 0.0 plus 1.0fil minus 1.0fil
+.....\OT1/cmtt/m/n/10  
+.....\glue 0.0 plus 1.0fil minus 1.0fil
+....\OT1/cmtt/m/n/10 E
+....\OT1/cmtt/m/n/10 N
+....\OT1/cmtt/m/n/10 D
+....\hbox(0.0+0.0)x0.0, direction TLT
+....\penalty 10000
+....\glue(\parfillskip) 0.0 plus 1.0fil
+....\glue(\rightskip) 0.0
+...\penalty 0
+...\glue(\parskip) 0.0
+...\glue(\parskip) 0.0
+...\glue(\baselineskip) 4.77777
+...\hbox(6.11111+1.11111)x345.0, glue set 229.501fil, direction TLT
+....\localpar
+.....\localinterlinepenalty=0
+.....\localbrokenpenalty=0
+.....\localleftbox=null
+.....\localrightbox=null
+....\hbox(0.0+0.0)x0.0, direction TLT
+....\hbox(2.19444+1.11111)x5.24995, direction TLT
+.....\glue 0.0 plus 1.0fil minus 1.0fil
+.....\OT1/cmtt/m/n/10  
+.....\glue 0.0 plus 1.0fil minus 1.0fil
+....\OT1/cmtt/m/n/10 T
+....\OT1/cmtt/m/n/10 A
+....\OT1/cmtt/m/n/10 B
+....\hbox(2.19444+1.11111)x5.24995, direction TLT
+.....\glue 0.0 plus 1.0fil minus 1.0fil
+.....\OT1/cmtt/m/n/10  
+.....\glue 0.0 plus 1.0fil minus 1.0fil
+....\OT1/cmtt/m/n/10 A
+....\OT1/cmtt/m/n/10 T
+....\hbox(2.19444+1.11111)x5.24995, direction TLT
+.....\glue 0.0 plus 1.0fil minus 1.0fil
+.....\OT1/cmtt/m/n/10  
+.....\glue 0.0 plus 1.0fil minus 1.0fil
+....\OT1/cmtt/m/n/10 S
+....\OT1/cmtt/m/n/10 T
+....\OT1/cmtt/m/n/10 A
+....\OT1/cmtt/m/n/10 R
+....\OT1/cmtt/m/n/10 T
+....\hbox(2.19444+1.11111)x5.24995, direction TLT
+.....\glue 0.0 plus 1.0fil minus 1.0fil
+.....\OT1/cmtt/m/n/10  
+.....\glue 0.0 plus 1.0fil minus 1.0fil
+....\OT1/cmtt/m/n/10 A
+....\OT1/cmtt/m/n/10 N
+....\OT1/cmtt/m/n/10 D
+....\hbox(2.19444+1.11111)x5.24995, direction TLT
+.....\glue 0.0 plus 1.0fil minus 1.0fil
+.....\OT1/cmtt/m/n/10  
+.....\glue 0.0 plus 1.0fil minus 1.0fil
+....\OT1/cmtt/m/n/10 E
+....\OT1/cmtt/m/n/10 N
+....\OT1/cmtt/m/n/10 D
+....\hbox(2.19444+1.11111)x5.24995, direction TLT
+.....\glue 0.0 plus 1.0fil minus 1.0fil
+.....\OT1/cmtt/m/n/10  
+.....\glue 0.0 plus 1.0fil minus 1.0fil
+....\hbox(0.0+0.0)x0.0, direction TLT
+....\penalty 10000
+....\glue(\parfillskip) 0.0 plus 1.0fil
+....\glue(\rightskip) 0.0
+...\penalty 0
+...\glue(\parskip) 0.0
+...\glue(\parskip) 0.0
+...\glue(\baselineskip) 4.77777
+...\hbox(6.11111+1.11111)x345.0, glue set 219.0011fil, direction TLT
+....\localpar
+.....\localinterlinepenalty=0
+.....\localbrokenpenalty=0
+.....\localleftbox=null
+.....\localrightbox=null
+....\hbox(0.0+0.0)x0.0, direction TLT
+....\OT1/cmtt/m/n/10 F
+....\OT1/cmtt/m/n/10 O
+....\OT1/cmtt/m/n/10 O
+....\hbox(2.19444+1.11111)x5.24995, direction TLT
+.....\glue 0.0 plus 1.0fil minus 1.0fil
+.....\OT1/cmtt/m/n/10  
+.....\glue 0.0 plus 1.0fil minus 1.0fil
+....\OT1/cmtt/m/n/10 B
+....\OT1/cmtt/m/n/10 A
+....\OT1/cmtt/m/n/10 R
+....\hbox(2.19444+1.11111)x5.24995, direction TLT
+.....\glue 0.0 plus 1.0fil minus 1.0fil
+.....\OT1/cmtt/m/n/10  
+.....\glue 0.0 plus 1.0fil minus 1.0fil
+....\hbox(2.19444+1.11111)x5.24995, direction TLT
+.....\glue 0.0 plus 1.0fil minus 1.0fil
+.....\OT1/cmtt/m/n/10  
+.....\glue 0.0 plus 1.0fil minus 1.0fil
+....\hbox(2.19444+1.11111)x5.24995, direction TLT
+.....\glue 0.0 plus 1.0fil minus 1.0fil
+.....\OT1/cmtt/m/n/10  
+.....\glue 0.0 plus 1.0fil minus 1.0fil
+....\kern0.0
+....\OT1/cmtt/m/n/10 <
+....\kern0.0
+....\OT1/cmtt/m/n/10 -
+....\kern0.0
+....\OT1/cmtt/m/n/10 -
+....\hbox(2.19444+1.11111)x5.24995, direction TLT
+.....\glue 0.0 plus 1.0fil minus 1.0fil
+.....\OT1/cmtt/m/n/10  
+.....\glue 0.0 plus 1.0fil minus 1.0fil
+....\OT1/cmtt/m/n/10 T
+....\OT1/cmtt/m/n/10 H
+....\OT1/cmtt/m/n/10 R
+....\OT1/cmtt/m/n/10 E
+....\OT1/cmtt/m/n/10 E
+....\hbox(2.19444+1.11111)x5.24995, direction TLT
+.....\glue 0.0 plus 1.0fil minus 1.0fil
+.....\OT1/cmtt/m/n/10  
+.....\glue 0.0 plus 1.0fil minus 1.0fil
+....\OT1/cmtt/m/n/10 T
+....\OT1/cmtt/m/n/10 A
+....\OT1/cmtt/m/n/10 B
+....\OT1/cmtt/m/n/10 S
+....\hbox(0.0+0.0)x0.0, direction TLT
+....\penalty 10000
+....\glue(\parfillskip) 0.0 plus 1.0fil
+....\glue(\rightskip) 0.0
+...\penalty 0
+...\penalty -51
+...\glue 10.0 plus 3.0 minus 5.0
+...\glue -1.11111
+...\glue 0.0 plus 1.0fil
+...\glue 0.0
+...\glue 0.0 plus 0.0001fil
+..\glue(\baselineskip) 23.55556
+..\hbox(6.44444+0.0)x345.0, direction TLT
+...\hbox(6.44444+0.0)x345.0, glue set 170.0fil, direction TLT
+....\glue 0.0 plus 1.0fil
+....\OT1/cmr/m/n/10 1
+....\glue 0.0 plus 1.0fil
+(github-1245.aux)
diff --git a/required/tools/testfiles/github-1245.lvt b/required/tools/testfiles/github-1245.lvt
new file mode 100644
index 00000000..339688f6
--- /dev/null
+++ b/required/tools/testfiles/github-1245.lvt
@@ -0,0 +1,11 @@
+\documentclass{article}
+\input{regression-test}
+\usepackage{verbatim}
+\begin{document}
+
+% the sample needs to contain both tabs and spaces. The fix in 1245
+% enables \verbatiminput* to mark tabs as if they were spaces
+
+\START \showoutput
+\verbatiminput*{github-1245-sample.txt}
+\end{document}
diff --git a/required/tools/testfiles/github-1245.tlg b/required/tools/testfiles/github-1245.tlg
new file mode 100644
index 00000000..d9bc73cd
--- /dev/null
+++ b/required/tools/testfiles/github-1245.tlg
@@ -0,0 +1,125 @@
+This is a generated file for the l3build validation system.
+Don't change this file in any respect.
+File: "github-1245-sample.txt"  (verbatim)
+Completed box being shipped out [1]
+\vbox(633.0+0.0)x407.0
+.\glue 16.0
+.\vbox(617.0+0.0)x345.0, shifted 62.0
+..\vbox(12.0+0.0)x345.0, glue set 12.0fil
+...\glue 0.0 plus 1.0fil
+...\hbox(0.0+0.0)x345.0
+....\hbox(0.0+0.0)x345.0
+..\glue 25.0
+..\glue(\lineskip) 0.0
+..\vbox(550.0+0.0)x345.0, glue set 505.94595fil
+...\write-{}
+...\glue(\topskip) 3.88889
+...\hbox(6.11111+1.11111)x345.0, glue set 266.25069fil
+....\hbox(0.0+0.0)x0.0
+.....\glue 0.0
+.....\glue 0.0
+.....\glue -5.0
+.....\hbox(0.0+0.0)x0.0
+.....\glue 5.0
+....\OT1/cmtt/m/n/10 T
+....\OT1/cmtt/m/n/10 A
+....\OT1/cmtt/m/n/10 B
+....\OT1/cmtt/m/n/10 :
+....\OT1/cmtt/m/n/10  
+....\OT1/cmtt/m/n/10 S
+....\OT1/cmtt/m/n/10 P
+....\OT1/cmtt/m/n/10 A
+....\OT1/cmtt/m/n/10 C
+....\OT1/cmtt/m/n/10 E
+....\OT1/cmtt/m/n/10 :
+....\OT1/cmtt/m/n/10  
+....\OT1/cmtt/m/n/10 E
+....\OT1/cmtt/m/n/10 N
+....\OT1/cmtt/m/n/10 D
+....\hbox(0.0+0.0)x0.0
+....\penalty 10000
+....\glue(\parfillskip) 0.0 plus 1.0fil
+....\glue(\rightskip) 0.0
+...\penalty 0
+...\glue(\parskip) 0.0
+...\glue(\parskip) 0.0
+...\glue(\baselineskip) 4.77777
+...\hbox(6.11111+1.11111)x345.0, glue set 229.501fil
+....\hbox(0.0+0.0)x0.0
+....\OT1/cmtt/m/n/10  
+....\OT1/cmtt/m/n/10 T
+....\OT1/cmtt/m/n/10 A
+....\OT1/cmtt/m/n/10 B
+....\OT1/cmtt/m/n/10  
+....\OT1/cmtt/m/n/10 A
+....\OT1/cmtt/m/n/10 T
+....\OT1/cmtt/m/n/10  
+....\OT1/cmtt/m/n/10 S
+....\OT1/cmtt/m/n/10 T
+....\OT1/cmtt/m/n/10 A
+....\OT1/cmtt/m/n/10 R
+....\OT1/cmtt/m/n/10 T
+....\OT1/cmtt/m/n/10  
+....\OT1/cmtt/m/n/10 A
+....\OT1/cmtt/m/n/10 N
+....\OT1/cmtt/m/n/10 D
+....\OT1/cmtt/m/n/10  
+....\OT1/cmtt/m/n/10 E
+....\OT1/cmtt/m/n/10 N
+....\OT1/cmtt/m/n/10 D
+....\OT1/cmtt/m/n/10  
+....\hbox(0.0+0.0)x0.0
+....\penalty 10000
+....\glue(\parfillskip) 0.0 plus 1.0fil
+....\glue(\rightskip) 0.0
+...\penalty 0
+...\glue(\parskip) 0.0
+...\glue(\parskip) 0.0
+...\glue(\baselineskip) 4.77777
+...\hbox(6.11111+1.11111)x345.0, glue set 219.0011fil
+....\hbox(0.0+0.0)x0.0
+....\OT1/cmtt/m/n/10 F
+....\OT1/cmtt/m/n/10 O
+....\OT1/cmtt/m/n/10 O
+....\OT1/cmtt/m/n/10  
+....\OT1/cmtt/m/n/10 B
+....\OT1/cmtt/m/n/10 A
+....\OT1/cmtt/m/n/10 R
+....\OT1/cmtt/m/n/10  
+....\OT1/cmtt/m/n/10  
+....\OT1/cmtt/m/n/10  
+....\kern 0.0
+....\OT1/cmtt/m/n/10 <
+....\kern 0.0
+....\OT1/cmtt/m/n/10 -
+....\kern 0.0
+....\OT1/cmtt/m/n/10 -
+....\OT1/cmtt/m/n/10  
+....\OT1/cmtt/m/n/10 T
+....\OT1/cmtt/m/n/10 H
+....\OT1/cmtt/m/n/10 R
+....\OT1/cmtt/m/n/10 E
+....\OT1/cmtt/m/n/10 E
+....\OT1/cmtt/m/n/10  
+....\OT1/cmtt/m/n/10 T
+....\OT1/cmtt/m/n/10 A
+....\OT1/cmtt/m/n/10 B
+....\OT1/cmtt/m/n/10 S
+....\hbox(0.0+0.0)x0.0
+....\penalty 10000
+....\glue(\parfillskip) 0.0 plus 1.0fil
+....\glue(\rightskip) 0.0
+...\penalty 0
+...\penalty -51
+...\glue 10.0 plus 3.0 minus 5.0
+...\glue -1.11111
+...\glue 0.0 plus 1.0fil
+...\glue 0.0
+...\glue 0.0 plus 0.0001fil
+..\glue(\baselineskip) 23.55556
+..\hbox(6.44444+0.0)x345.0
+...\hbox(6.44444+0.0)x345.0, glue set 170.0fil
+....\glue 0.0 plus 1.0fil
+....\OT1/cmr/m/n/10 1
+....\glue 0.0 plus 1.0fil
+(github-1245.aux)
diff --git a/required/tools/testfiles/github-1245.xetex.tlg b/required/tools/testfiles/github-1245.xetex.tlg
new file mode 100644
index 00000000..c054cb5b
--- /dev/null
+++ b/required/tools/testfiles/github-1245.xetex.tlg
@@ -0,0 +1,167 @@
+This is a generated file for the l3build validation system.
+Don't change this file in any respect.
+File: "github-1245-sample.txt"  (verbatim)
+Completed box being shipped out [1]
+\vbox(633.0+0.0)x407.0
+.\glue 16.0
+.\vbox(617.0+0.0)x345.0, shifted 62.0
+..\vbox(12.0+0.0)x345.0, glue set 12.0fil
+...\glue 0.0 plus 1.0fil
+...\hbox(0.0+0.0)x345.0
+....\hbox(0.0+0.0)x345.0
+..\glue 25.0
+..\glue(\lineskip) 0.0
+..\vbox(550.0+0.0)x345.0, glue set 505.94595fil
+...\write-{}
+...\glue(\topskip) 3.88889
+...\hbox(6.11111+1.11111)x345.0, glue set 266.25069fil
+....\hbox(0.0+0.0)x0.0
+.....\glue 0.0
+.....\glue 0.0
+.....\glue -5.0
+.....\hbox(0.0+0.0)x0.0
+.....\glue 5.0
+....\OT1/cmtt/m/n/10 T
+....\OT1/cmtt/m/n/10 A
+....\OT1/cmtt/m/n/10 B
+....\OT1/cmtt/m/n/10 :
+....\hbox(2.19444+1.11111)x5.24995
+.....\glue 0.0 plus 1.0fil minus 1.0fil
+.....\OT1/cmtt/m/n/10  
+.....\glue 0.0 plus 1.0fil minus 1.0fil
+....\OT1/cmtt/m/n/10 S
+....\OT1/cmtt/m/n/10 P
+....\OT1/cmtt/m/n/10 A
+....\OT1/cmtt/m/n/10 C
+....\OT1/cmtt/m/n/10 E
+....\OT1/cmtt/m/n/10 :
+....\hbox(2.19444+1.11111)x5.24995
+.....\glue 0.0 plus 1.0fil minus 1.0fil
+.....\OT1/cmtt/m/n/10  
+.....\glue 0.0 plus 1.0fil minus 1.0fil
+....\OT1/cmtt/m/n/10 E
+....\OT1/cmtt/m/n/10 N
+....\OT1/cmtt/m/n/10 D
+....\hbox(0.0+0.0)x0.0
+....\penalty 10000
+....\glue(\parfillskip) 0.0 plus 1.0fil
+....\glue(\rightskip) 0.0
+...\penalty 0
+...\glue(\parskip) 0.0
+...\glue(\parskip) 0.0
+...\glue(\baselineskip) 4.77777
+...\hbox(6.11111+1.11111)x345.0, glue set 229.501fil
+....\hbox(0.0+0.0)x0.0
+....\hbox(2.19444+1.11111)x5.24995
+.....\glue 0.0 plus 1.0fil minus 1.0fil
+.....\OT1/cmtt/m/n/10  
+.....\glue 0.0 plus 1.0fil minus 1.0fil
+....\OT1/cmtt/m/n/10 T
+....\OT1/cmtt/m/n/10 A
+....\OT1/cmtt/m/n/10 B
+....\hbox(2.19444+1.11111)x5.24995
+.....\glue 0.0 plus 1.0fil minus 1.0fil
+.....\OT1/cmtt/m/n/10  
+.....\glue 0.0 plus 1.0fil minus 1.0fil
+....\OT1/cmtt/m/n/10 A
+....\OT1/cmtt/m/n/10 T
+....\hbox(2.19444+1.11111)x5.24995
+.....\glue 0.0 plus 1.0fil minus 1.0fil
+.....\OT1/cmtt/m/n/10  
+.....\glue 0.0 plus 1.0fil minus 1.0fil
+....\OT1/cmtt/m/n/10 S
+....\OT1/cmtt/m/n/10 T
+....\OT1/cmtt/m/n/10 A
+....\OT1/cmtt/m/n/10 R
+....\OT1/cmtt/m/n/10 T
+....\hbox(2.19444+1.11111)x5.24995
+.....\glue 0.0 plus 1.0fil minus 1.0fil
+.....\OT1/cmtt/m/n/10  
+.....\glue 0.0 plus 1.0fil minus 1.0fil
+....\OT1/cmtt/m/n/10 A
+....\OT1/cmtt/m/n/10 N
+....\OT1/cmtt/m/n/10 D
+....\hbox(2.19444+1.11111)x5.24995
+.....\glue 0.0 plus 1.0fil minus 1.0fil
+.....\OT1/cmtt/m/n/10  
+.....\glue 0.0 plus 1.0fil minus 1.0fil
+....\OT1/cmtt/m/n/10 E
+....\OT1/cmtt/m/n/10 N
+....\OT1/cmtt/m/n/10 D
+....\hbox(2.19444+1.11111)x5.24995
+.....\glue 0.0 plus 1.0fil minus 1.0fil
+.....\OT1/cmtt/m/n/10  
+.....\glue 0.0 plus 1.0fil minus 1.0fil
+....\hbox(0.0+0.0)x0.0
+....\penalty 10000
+....\glue(\parfillskip) 0.0 plus 1.0fil
+....\glue(\rightskip) 0.0
+...\penalty 0
+...\glue(\parskip) 0.0
+...\glue(\parskip) 0.0
+...\glue(\baselineskip) 4.77777
+...\hbox(6.11111+1.11111)x345.0, glue set 219.0011fil
+....\hbox(0.0+0.0)x0.0
+....\OT1/cmtt/m/n/10 F
+....\OT1/cmtt/m/n/10 O
+....\OT1/cmtt/m/n/10 O
+....\hbox(2.19444+1.11111)x5.24995
+.....\glue 0.0 plus 1.0fil minus 1.0fil
+.....\OT1/cmtt/m/n/10  
+.....\glue 0.0 plus 1.0fil minus 1.0fil
+....\OT1/cmtt/m/n/10 B
+....\OT1/cmtt/m/n/10 A
+....\OT1/cmtt/m/n/10 R
+....\hbox(2.19444+1.11111)x5.24995
+.....\glue 0.0 plus 1.0fil minus 1.0fil
+.....\OT1/cmtt/m/n/10  
+.....\glue 0.0 plus 1.0fil minus 1.0fil
+....\hbox(2.19444+1.11111)x5.24995
+.....\glue 0.0 plus 1.0fil minus 1.0fil
+.....\OT1/cmtt/m/n/10  
+.....\glue 0.0 plus 1.0fil minus 1.0fil
+....\hbox(2.19444+1.11111)x5.24995
+.....\glue 0.0 plus 1.0fil minus 1.0fil
+.....\OT1/cmtt/m/n/10  
+.....\glue 0.0 plus 1.0fil minus 1.0fil
+....\kern 0.0
+....\OT1/cmtt/m/n/10 <
+....\kern 0.0
+....\OT1/cmtt/m/n/10 -
+....\kern 0.0
+....\OT1/cmtt/m/n/10 -
+....\hbox(2.19444+1.11111)x5.24995
+.....\glue 0.0 plus 1.0fil minus 1.0fil
+.....\OT1/cmtt/m/n/10  
+.....\glue 0.0 plus 1.0fil minus 1.0fil
+....\OT1/cmtt/m/n/10 T
+....\OT1/cmtt/m/n/10 H
+....\OT1/cmtt/m/n/10 R
+....\OT1/cmtt/m/n/10 E
+....\OT1/cmtt/m/n/10 E
+....\hbox(2.19444+1.11111)x5.24995
+.....\glue 0.0 plus 1.0fil minus 1.0fil
+.....\OT1/cmtt/m/n/10  
+.....\glue 0.0 plus 1.0fil minus 1.0fil
+....\OT1/cmtt/m/n/10 T
+....\OT1/cmtt/m/n/10 A
+....\OT1/cmtt/m/n/10 B
+....\OT1/cmtt/m/n/10 S
+....\hbox(0.0+0.0)x0.0
+....\penalty 10000
+....\glue(\parfillskip) 0.0 plus 1.0fil
+....\glue(\rightskip) 0.0
+...\penalty 0
+...\penalty -51
+...\glue 10.0 plus 3.0 minus 5.0
+...\glue -1.11111
+...\glue 0.0 plus 1.0fil
+...\glue 0.0
+...\glue 0.0 plus 0.0001fil
+..\glue(\baselineskip) 23.55556
+..\hbox(6.44444+0.0)x345.0
+...\hbox(6.44444+0.0)x345.0, glue set 170.0fil
+....\glue 0.0 plus 1.0fil
+....\OT1/cmr/m/n/10 1
+....\glue 0.0 plus 1.0fil
+(github-1245.aux)
diff --git a/required/tools/testfiles/support/github-1245-sample.txt b/required/tools/testfiles/support/github-1245-sample.txt
new file mode 100644
index 00000000..e4d04c61
--- /dev/null
+++ b/required/tools/testfiles/support/github-1245-sample.txt
@@ -0,0 +1,3 @@
+TAB:	SPACE: END
+	TAB AT START AND END	
+FOO BAR			<-- THREE TABS
diff --git a/required/tools/verbatim.dtx b/required/tools/verbatim.dtx
index ebcc010a..c3418b00 100644
--- a/required/tools/verbatim.dtx
+++ b/required/tools/verbatim.dtx
@@ -69,6 +69,8 @@
 %\fi
 %
 %
+% 
+% \changes{v1.5x}{2024/01/22}{Added TAB marking support to \cs{verbatiminput*}}
 % \changes{v1.5u}{2020-07-07}{Typo repair and added a missing comment
 %    character}
 % \changes{v1.5q}{2003/08/22}{Reintroduced \cs{@noligs}, by popular
@@ -508,7 +510,7 @@
 %<*package>
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{verbatim}
-     [2023-11-06 v1.5v LaTeX2e package for verbatim enhancements]
+     [2024-01-22 v1.5x LaTeX2e package for verbatim enhancements]
 \@ifundefined{verbatim@@@}{}{\endinput}
 %    \end{macrocode}
 %
@@ -1570,7 +1572,14 @@
 %    arguments, depending on whether an asterisk follows.
 %    \begin{macrocode}
 \def\verbatiminput{\begingroup
-  \@ifstar{\verbatim at input\relax}%
+%    \end{macrocode}
+% 
+%   \changes{v1.5x}{2024/01/22}{Added TAB marking support into the
+%   starred version (gh/1245)}
+%   If starred, we mark spaces and TABs, the two
+%   added pieces are the same as for verbatim*.
+%    \begin{macrocode}
+  \@ifstar{\verbatim at input{\@setupverbvisiblespace\@vobeyspaces}}%
           {\verbatim at input{\frenchspacing\@vobeyspaces}}}
 %    \end{macrocode}
 % \end{macro}





More information about the latex3-commits mailing list.