Skip to content

Commit

Permalink
Merge pull request #1379 from latex3/gh1378
Browse files Browse the repository at this point in the history
Gh1378
  • Loading branch information
josephwright authored Jun 14, 2024
2 parents 669871a + 19787c5 commit 7b5d480
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 2 deletions.
5 changes: 3 additions & 2 deletions required/tools/array.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
% \begin{macrocode}
%<+package>\NeedsTeXFormat{LaTeX2e}[2024/06/01]
%<+package>\ProvidesPackage{array}
%<+package> [2024/05/23 v2.6c Tabular extension package (FMi)]
%<+package> [2024/06/14 v2.6d Tabular extension package (FMi)]
%
% \fi
%
Expand Down Expand Up @@ -2852,11 +2852,13 @@ Bug reports can be opened (category \texttt{#1}) at\\%
% \end{macrocode}
%
% \begin{macro}{\@preamerr}
% \changes{v2.6d}{2024/06/14}{Keep message sources out of L3 code (gh/1378)}
% We also have to redefine the error routine =\@preamerr= since
% new kind of errors are possible.
% The code for this macro is not perfect yet;
% it still needs too much memory.
% \begin{macrocode}
\ExplSyntaxOff
\def\@preamerr#1{\def\@tempd{{..} at wrong position: }%
\PackageError{array}{%
\ifcase #1 Illegal pream-token (\@nextchar): `c' used\or %0
Expand Down Expand Up @@ -2905,7 +2907,6 @@ Bug reports can be opened (category \texttt{#1}) at\\%
% to define letters, to be used in the same way as the primitive
% column specifiers, `c' `p' etc.
% \begin{macrocode}
\ExplSyntaxOff % this is really oldstyle using \@tfor :=
\def\newcolumntype#1{%
% \end{macrocode}
% "\NC@char" was added in V2.01 so that active characters, like "@" in
Expand Down
5 changes: 5 additions & 0 deletions required/tools/changes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ are not part of the distribution.
All changes above are only part of the development branch for the next release.
================================================================================

2024-06-14 David Carlisle <David.Carlisle@latex-project.org>

* array.dtx move \ExplSyntaxOff earlier so error message spaces preserved gh/1378


#########################
# 2024-06-01 Release
#########################
Expand Down
14 changes: 14 additions & 0 deletions required/tools/testfiles/github-1378.lvt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
\documentclass{article}
\usepackage{array}
\input{test2e}
\begin{document}

x $x$

\START
% The error message should show spaces
\begin{tabular}{X}
1.23 \\
\end{tabular}

\END
9 changes: 9 additions & 0 deletions required/tools/testfiles/github-1378.tlg
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
This is a generated file for the LaTeX2e validation system.
Don't change this file in any respect.
! Package array Error: Illegal pream-token (X): `c' used.
See the array package documentation for explanation.
Type H <return> for immediate help.
...
l. ...\begin{tabular}{X}
Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.

0 comments on commit 7b5d480

Please sign in to comment.