[latex3-commits] [latex3/latex2e] hotfix/gh1160: mumble (e9a62143)
github at latex-project.org
github at latex-project.org
Mon Nov 6 21:36:08 CET 2023
Repository : https://github.com/latex3/latex2e
On branch : hotfix/gh1160
Link : https://github.com/latex3/latex2e/commit/e9a621431af43020a5a8e6d03f71dd188b1a766f
>---------------------------------------------------------------
commit e9a621431af43020a5a8e6d03f71dd188b1a766f
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date: Mon Nov 6 21:36:08 2023 +0100
mumble
>---------------------------------------------------------------
e9a621431af43020a5a8e6d03f71dd188b1a766f
required/tools/verbatim.dtx | 18 +++++++++++-------
1 file changed, 11 insertions(+), 7 deletions(-)
diff --git a/required/tools/verbatim.dtx b/required/tools/verbatim.dtx
index aee1aa16..d099ee07 100644
--- a/required/tools/verbatim.dtx
+++ b/required/tools/verbatim.dtx
@@ -545,17 +545,21 @@
% \begin{macro}{\@vobeyspaces}
% \changes{v1.5}{1993/10/11}{Changed definition to not use \cs{gdef}.}
% \changes{v1.1a}{1989/10/16}{\cs{@vobeyspaces} added.}
-% \changes{v1.5v}{20230/10/06}{\cs{@vobeytabs} added when available (gh/1160)}
% The macro |\@vobeyspaces| causes spaces in the input
% to be printed as spaces in the output.
% \begin{macrocode}
\begingroup
- \catcode`\ =\active%
- \@ifl at t@r\fmtversion{2023-11-01}%
- {\def\x{\def\@vobeyspaces{\catcode`\ \active\let \@xobeysp
- \@vobeytabs}}}%
- {\def\x{\def\@vobeyspaces{\catcode`\ \active\let \@xobeysp}}}%
- \expandafter\endgroup\x
+\catcode`\ =\active%
+% \end{macrocode}
+% Because space is active we can't indent the following code
+% nicely---we would then get the spaces at the beginning of the
+% line as the third and fourth argument to \cs{@ifl at t@r}.
+% \changes{v1.5v}{20230/10/06}{\cs{@vobeytabs} added when available (gh/1160)}
+% \begin{macrocode}
+\@ifl at t@r\fmtversion{2023-11-01}%
+{\def\x{\def\@vobeyspaces{\catcode`\ \active\let \@xobeysp\@vobeytabs}}}%
+{\def\x{\def\@vobeyspaces{\catcode`\ \active\let \@xobeysp}}}%
+\expandafter\endgroup\x
% \end{macrocode}
% \end{macro}
%
More information about the latex3-commits
mailing list.