Skip to content

Commit

Permalink
Fix equivalent of \end in \text_purify:n
Browse files Browse the repository at this point in the history
  • Loading branch information
josephwright committed Oct 20, 2020
1 parent e220826 commit 54f8761
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions l3kernel/CHANGELOG.md
Expand Up @@ -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
Expand Down
7 changes: 6 additions & 1 deletion l3kernel/l3text-purify.dtx
Expand Up @@ -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 \\ { }
Expand Down

0 comments on commit 54f8761

Please sign in to comment.