[latex3-commits] [git/LaTeX3-latex3-latex3] master: Fix equivalent of \end in \text_purify:n (54f8761ed)
Joseph Wright
joseph.wright at morningstar2.co.uk
Tue Oct 20 23:01:43 CEST 2020
Repository : https://github.com/latex3/latex3
On branch : master
Link : https://github.com/latex3/latex3/commit/54f8761ed7d304b22db35481e9caad83cf42a5f8
>---------------------------------------------------------------
commit 54f8761ed7d304b22db35481e9caad83cf42a5f8
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Tue Oct 20 22:01:43 2020 +0100
Fix equivalent of \end in \text_purify:n
>---------------------------------------------------------------
54f8761ed7d304b22db35481e9caad83cf42a5f8
l3kernel/CHANGELOG.md | 1 +
l3kernel/l3text-purify.dtx | 7 ++++++-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/l3kernel/CHANGELOG.md b/l3kernel/CHANGELOG.md
index 69a6243c7..94bf8e4e0 100644
--- a/l3kernel/CHANGELOG.md
+++ b/l3kernel/CHANGELOG.md
@@ -9,6 +9,7 @@ this project uses date-based 'snapshot' version identifiers.
### Fixed
- Avoid relying on braced `\input` primitive syntax
+- Correct expansion of environments in `\text_purify:n`
### Changed
- Extend case changer to cover all of Greek with pdfTeX
diff --git a/l3kernel/l3text-purify.dtx b/l3kernel/l3text-purify.dtx
index b2f0b59fa..24cd0933e 100644
--- a/l3kernel/l3text-purify.dtx
+++ b/l3kernel/l3text-purify.dtx
@@ -398,10 +398,15 @@
{ \text_declare_purify_equivalent:Nn #1 { } }
% \end{macrocode}
% Environments have to be handled by pure expansion.
+%
+% \begin{macro}{\@@_end_env:n}
% \begin{macrocode}
\text_declare_purify_equivalent:Nn \begin { \use:c }
-\text_declare_purify_equivalent:Nn \end { \use:c }
+\text_declare_purify_equivalent:Nn \end { \@@_end_env:n }
+\cs_new:Npn \@@_end_env:n #1 { \cs:w end #1 \cs_end: }
% \end{macrocode}
+% \end{macro}
+%
% Some common symbols and similar ideas.
% \begin{macrocode}
\text_declare_purify_equivalent:Nn \\ { }
More information about the latex3-commits
mailing list.